mehrabisajad / ng2-datepicker-jalali

datepicker jalali for angular 2
MIT License
21 stars 7 forks source link

how do i load this conditionally? #5

Open kordeviant opened 6 years ago

kordeviant commented 6 years ago

hi there and thanks for sharing your work, how can i provide it conditionally to my component? i mean for example if input is en dont provide these classes

mehrabisajad commented 6 years ago

you can use ng2datetimepicker-jalali component for fa and ngb-bootstrap for en. or You can create a component for each one. or Create a provider class that support each one and manage it with your service .

sasanazizi commented 6 years ago

@mehrabisajad can you show this idea with Plunker please ?