Friday, June 26, 2015

What are AngularJS Expressions?

Expressions in AngularJS are a quick way to add dynamic content from the model objects / variables to the HTML view, expressions can evaluate multiple variables / model properties using operators and display the evaluated result in the view.

Expressions are a short form of ng-bind, they provide the ability to do one-way data binding between the model and the view.

Expressions are enclosed within a couple of flower braces in the HTML view. Following is the Syntax for Expressions
{{Expression}}

Following are some examples of expressions

{{2 + 3}}

{{‘FirstName’ + ‘LastName’}}

Search Flipkart Products:
Flipkart.com

No comments: