AngularJS Model

1.What is ng-model directive?

By using ng-model directive we can bind the value of an input field, select and text area to a variable created in angular Js.

{ajs-ngmodel}

 

2.What is two-way binding?

Two-way binding means if you change the value inside the input box the property values also change.

{ajs-twowaybinding}

 

3.How to validate user input?

By using ng-model directive we can validate input fields like Email ,phone number, etc..

{ajs-input}