mikemclin / angular-acl

Role-based permissions for AngularJS
196 stars 49 forks source link

adding acl-can directive to easly use aclService from html #22

Closed mohamednagy closed 8 years ago

mikemclin commented 8 years ago

I think modifying the display property, instead of visibility. visibility doesn't affect document flow, and leaves a blank area where the element would have been.

Also, what about maybe going to a aclShow and aclHide? That way the user could show or hide depending on the ACL rule. Also, it would be similar to Angular's ngHide and ngShow directives.