Thursday, September 28, 2017

Using angular-js ng-disabled

I have this requirement where i need to disable a button based on some condition:

Controller:

<div  ng-controller= "myController" class="modal-dialog">
                <div class="modal-content">
                  <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal"   aria-hidden="true">×</button>
                    <h3 class="modal-title"> Add</h4>

I need to disable this button when I have added 5 entries in html page.Can someone help me out?

Source: AngularJS



from Angular Questions https://angularquestions.com/2017/09/28/using-angular-js-ng-disabled/
via @lzomedia #developer #freelance #web

No comments:

Post a Comment