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?