angularjs - Disable button in angular js -


I have "save set" in my page that has 2 buttons; "Load set" in the "Set the save" button in the NG-disabled = HashView Disable ()

  ...... Controller ('saveLoadSetToolbarBtn', ['$ scope', '$ modal ',' Attribute ', ($ Scope.loadTuneSet = function () {$ modal.open ({templateUrl:' loadSetDlg.html ', administrator:' loadSetCtrl '});}; $ scope.isSaveDisabled = function () {return Properties! Modified.get ();} .......   

When I click on Load Set, it will open a popup and they will have a OK button. However, I should disable the "Save Set" button

OK button,

  .controller ('loadSetCtrl', ['$ scope', '$ modalInstance', 'Normal Ta service ', function ($ radius, $ modalInstance, GeneralDataService) {$ scope.items = []; $ scope.selectedSet = undefined; $ scope.ok = function () {// Some arguments are closeDialog; $ ModalInstance .close ();}   

If there is any price change in my page then this "Save Set" button will be enabled. The problem is that if I can change a value in my page The button is enabled (as expected). If I click on the "Load Set" button, the popup will open and OK button will be clicked on (click on the popup) then it should go back to the Disable "Save Set" state. I'm saving the button on the OK button, through this it should be able to return the boolean value.

Simple:

  & lt; Button ng-model = "btnSaveSet" ng-disabled = "btnSaveSet_disabled" ng-click = "btnSaveSet_disabled = true" & gt; SaveSet & lt; / Button & gt;    

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -