Thursday, September 7, 2017

How AngularJS expressions are different from the JavaScript expressions?

AngularJS expressions are much like JavaScript expressions but they are different from JavaScript expressions in the following ways:

1. Angular expressions can be added inside the HTML templates.

2. Angular expressions doesn't support control flow statements (conditionals, loops, or exceptions).

3. Angular expressions support filters to format data before displaying it.

No comments:

Post a Comment

What is restrict option in directive?

The restrict option in angular directive, is used to specify how a directive will be invoked in your angular app i.e. as an attribute, class...