arkon / ng-sidebar

[Inactive] Angular sidebar component.
https://echeung.me/ng-sidebar
MIT License
388 stars 136 forks source link

Dynamic directive #188

Open Et3rnal opened 5 years ago

Et3rnal commented 5 years ago

It would be really nice to allow closeSidebar directive to take boolean so we can use it dynamically

something like this [closeSidebar]="false" which will disable it so we can use it conditionally like:

[closeSidebar]="condition ? true : false"

This is really useful in responsive designs where we only toggle menus on small devices. Otherwise is there a way to achieve this?

Thanks