AngularJS Expressions

By | September 20, 2015

AngularJS expressions are written inside double braces: {{ expression }}.

AngularJS expressions binds data to HTML the same way as the ng-bind directive.

AngularJS will “output” data exactly where the expression is written.

AngularJS expressions are much like JavaScript expressions: They can contain literals, operators, and variables.

Example {{ 5 + 5 }} or {{ firstName + ” ” + lastName }}

AngularJS Example
<!DOCTYPE html>
<script src=””></script>

<div ng-app=””>
<p>My first expression: {{ 5 + 5 }}</p>


Leave a Reply

Your email address will not be published. Required fields are marked *