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