Knowing where and when ng-click will get triggered is very important. How to reload or re-render the entire page using AngularJS? How to change the date format using AngularJS ? If you want to make a button onclick, you need to add the onclick event attribute to the <button> element. What are the differences between an Annotation and a Decorator in Angular? Asking for help, clarification, or responding to other answers. How to set or update page title using UI-Router? ng-class provides inbuilt functionality. What should I do? For simpler logic such as the one shown in example 1, we can avoid calling the function and changing the variable inside the ng-click directive. Right now its' showing edit option for all the rows. Sometimes we need this in our application while submitting the Data and prevent the user to click it again until data gets saved or click event action completes the processes. Console log of the 'this.title' value I try to set has the new value, but the view does not change. First create a simple HTML :- <html> <head> <link rel="stylesheet" type="text/css" href="css/index.css"> <link rel="stylesheet" type="text/css" href="css/myApp.css"> ngclass click change toggle. How to make sure clients have enough words in textarea by using angularjs in order to disable/enable a button?