Within my form, I have a condition where if $isvalidate is true, the button receives the class 'disable-reg-btn'. Here is an example:
ng-class="{{reg_form.$invalid ? 'disable-reg-btn' : ''}}"
However, when I view the page in the browser and the form is invalid, I notice in Chrome Dev tools that this code appears:
<button ng-class="disable-reg-btn" ng-disabled="true" ......
and unfortunately, the class is not being added. Where could the error be originating from?
I am currently utilizing Angular 1.5.8. Angular has been included in the footer of the document. The button resides within a div with ng-app and ng-controller attributes.