Angularjs ngDisabled comparison expression not evaluating correctly Angularjs ngDisabled comparison expression not evaluating correctly angularjs angularjs

Angularjs ngDisabled comparison expression not evaluating correctly


Remove the curlies around your ng-disabled attribute.


Here's the way it worked for your plunk:

<input type="button" value="Continue" ng-disabled="startertext != inputfield">

Don't forget to remove the extra curlie in your controller (marked by an error sign when I opened it in the editor).