Trying to control the functionality of my Save button with ng-disabled:
<button type="button" title="Save Changes" ng-click="onSaveChanges()"
ng-disabled="{{!data.modified}}">
Save
</button>
I am using a $scope.data.modified variable that changes to true when my data is modified. However, even when this variable toggles between true and false, the Save button remains enabled. Upon inspecting the element, I see that ng-disabled switches between "true" and "false" as expected, but the button does not reflect this change.