arkon / ng-sidebar

[Inactive] Angular sidebar component.

Home Page:https://echeung.me/ng-sidebar

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dynamic directive

Et3rnal opened this issue · comments

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