AngularJs Expressions Ng Model

Expressions and ng-model in AngularJS

We have used few Angular components like expressions and ng-model directive in the web page, we just created.

Let us now understand more about Angular expressions and ng-model directive.

Angular Expression:

  • Angular expressions are JavaScript-like code snippets mentioned within {{expression}}.
  • Expressions get evaluated on page load.
  • Examples :
    • {{ “Hello” + “ World” }} => Hello World
    • {{ companyName }} => BookOfNetwork

ng-model:

  • ng-model helps create Angular models to store application data.
  • This directive binds an input, select, textarea to a model.
#Expressions_and_ng-model_in_AngularJS #Angular_Expression #Angularjs_Expression

(New page will open, for Comment)

Not yet commented...