evansmwendwa / ng2-daterangepicker

Usage Demos update in this url >>>
https://codesandbox.io/s/6yr1zm18w3
MIT License
132 stars 89 forks source link

Can't use singleton of DaterangepickerConfig for a modular project #112

Closed SlidEnergy closed 4 years ago

SlidEnergy commented 5 years ago

I have Core, Shared and lazy loading Future modules. For import daterangepicker directive to Future modules I export daterangepicker in Shared module and then import Shared module in Future. But for each Future module I have instanse of DateRangepickerConfig and I need global configure daterangepicker in each module. I want configure daterangepicker global one time in my Core module. Core module is place for all singleton services. For that I suppose to need call a forRoot method (forRoot() and forChild() ) in Core module (imports section) and export daterangepicker in Shared module as before.

evansmwendwa commented 4 years ago

Closed due to inactivity