From 9d9fb93c6f26b116a9417f6e1af10ccbac39f18c Mon Sep 17 00:00:00 2001 From: Nievac Date: Tue, 25 Jun 2019 06:20:53 +0800 Subject: [PATCH] Added AngularJS Expressions (#27771) --- .../angularjs/angularjs-expression/index.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 guide/english/angularjs/angularjs-expression/index.md diff --git a/guide/english/angularjs/angularjs-expression/index.md b/guide/english/angularjs/angularjs-expression/index.md new file mode 100644 index 0000000000..30a5d41390 --- /dev/null +++ b/guide/english/angularjs/angularjs-expression/index.md @@ -0,0 +1,30 @@ +--- +title: AngularJS Expressions +--- +# AngularJS Expressions +------ +AngularJS expressions can be written inside double braces: `{{ expression }}`. + +AngularJS 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. + +##### AngularJS expressions are much like JavaScript expressions: They can contain literals, operators, and variables. + +Example `{{ 5 + 5 }}` or `{{ firstName + " " + lastName }}` + +#### Sample HTML +```html + + + + + +
+

My first expression: {{ 5 + 5 }}

+
+ + + +``` +#### More info @ [https://www.w3schools.com/angular/angular_expressions.asp](https://www.w3schools.com/angular/angular_expressions.asp)