From f250a9bab7ca6641a897292fdf96c538ec3682e3 Mon Sep 17 00:00:00 2001 From: ArshSran <43150996+ArshSran@users.noreply.github.com> Date: Sat, 3 Nov 2018 18:08:59 -0600 Subject: [PATCH] AngularJS Expressions (#20839) * AngularJS Expressions * fixed formatting and removed redundancy --- guide/english/angularjs/index.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guide/english/angularjs/index.md b/guide/english/angularjs/index.md index 9f75c6ec67..982783b33f 100644 --- a/guide/english/angularjs/index.md +++ b/guide/english/angularjs/index.md @@ -7,6 +7,17 @@ title: AngularJS It reduces the repetitive use of HTML code. This repetition can be avoided by using the directives provided by AngularJS which saves much time and effort. +## AngularJS Expressions +- Expressions can be written inside double braces: `{{ expression }}` +- Expressions can also be written inside a directive: `ng-bind="expression"` +- AngularJS will resolve the expression, and return the result exactly where the expression is written +- Expressions are much like JavaScript expressions: They can contain literals, operators, and variables. + +Example: +```js +{{ 5 + 5 }} or {{ firstName + " " + lastName }} +``` + **Install**: npm: