How to bind the value of HTML controls in AngularJS

AngularJS, 30 secs Read, 2 years ago

In this tutorial I'm going to show you to bind values of HTML input controls. We can use ng-bind directive to do this task. ng-bing directive always monitoring the HTML input controls, when it is found value, it stores the value in a data container and bind the value in expression. It does a simple task, when user enter value it keeps the value in a variable and prints the variable in expression.  








Enter Something: <input type="text" />














Note that, we can also use {{}} curly braces for doing the same task.

Quote of the day: live life

Subscribe our Newsletter

Join our mailing list to receive updates on the latest blog posts and other things.