Saturday, October 8, 2016

AngularJS - Binding Expressions

AngularJS expressions can be written
  • Inside double braces: {{ expression }}.
  • Inside a directive: ng-bind="expression".
Similarity between Javascript and AngulaJS expressions: 
  • Like JavaScript expressions: They can contain literals, operators, and variables.
  • AngularJS numbers, strings, objects, arrays, are same as javascript.
  • AngularJS resolves the expression, and return the result exactly where the expression is written.
  • AngularJS expressions can be written inside HTML.
Difference between Javascript and AngularJS expressions:
  • AngularJS expressions do not support conditionals, loops, and exceptions, while JavaScript expressions do.
  • AngularJS expressions support filters, while JavaScript expressions do not.

    No comments:

    Post a Comment