You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello All,
When the page is loaded my check box is disabled (good, it is my expected).
When user click button the enableEditField is change to false, the checkbox is enable that mean it override the permission-on-unauthorized.
My expected is md-checkbox enable or disabled based on the permission and I also want to use ng-disabled="mycondition".
Thanks
The text was updated successfully, but these errors were encountered:
I don't think permission is suitable for the case you are describing.... You should simply store the current value of "editability" in variable in controller and update it through action to changes in the button.
I would like to use the permission to allow user can or can not edit some filed such as checkbox, textbox....
and also use the condition to disabled when it is in view mode, how to solve this issue or could you give some advice in this case :)
Thanks
You should use permission to evaluate whether user can edit/access form - lets say to enable edit button, but controlling the state of controls is responsibility of controller's logic - and you should implement editability of controls there.
Hello All,
When the page is loaded my check box is disabled (good, it is my expected).
When user click button the enableEditField is change to false, the checkbox is enable that mean it override the permission-on-unauthorized.
My expected is md-checkbox enable or disabled based on the permission and I also want to use ng-disabled="mycondition".
Thanks
The text was updated successfully, but these errors were encountered: