Passing a variable as permissionSee original GitHub issue
I’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release) [ ] Bug report [x] Feature request [ ] Documentation issue or request
element doesn’t switch its status (from invisible to visible or vice versa) if the permissions are dynamic.
if I have a button like this:
<button *ngxPermissionsOnly="some_permissions"> add Button</button>
some_permissions is a variable which changes as the route changes, the button save its status and doesn’t switch on or off.
the DOM element must change its status as the variable changes.
Minimal reproduction of the problem with instructions
Angular version: 6.2.5 ngx-permissions version: 6.0.2 Browser: - [x] Chrome (desktop) version 70.0 - [ ] Chrome (Android) version XX - [ ] Chrome (iOS) version XX - [ ] Firefox version XX - [ ] Safari (desktop) version XX - [ ] Safari (iOS) version XX - [ ] IE version XX - [ ] Edge version XX
- Created 4 years ago
- Comments:5 (3 by maintainers)