- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2021 04:44 AM
Hello,
I want to enable / disable the submit button depending on the person's attributes.
The following code doesn't work:
<input class = "input" type = "submit" value = "save" ng-click = "c.changed ()" role = "button" disabled = "c.data.flg">
(c.data.flg = true or false)
Do you have any ideas?
Thanks in advance,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2021 05:12 AM
You can use the angular directive: ng-disabled="expression".
And take the flag from the server directly as follow: data.flg -> ng-disabled="data.flg"
Regards!
Kristian

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2021 05:12 AM
You can use the angular directive: ng-disabled="expression".
And take the flag from the server directly as follow: data.flg -> ng-disabled="data.flg"
Regards!
Kristian
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-02-2021 05:51 AM
Thanks!I worked it!
Regards,