AngularJS मे Expressions को HTML मे Application Data को Bind करने के लिए उपयोग किया जाता है. AngularJS Expression को Solve करता है और उस Result को Returns करता है जहां Expression मे लिखा जाता है.
AngularJS मे Expression का उपयोग Model से HTML DOM Elements और ng-bind Instructions के समान Data को Bind करने के लिए किया जाता है. Expressions आपको Variables, Objects, Operators और liters का उपयोग करने की Permission भी देता है.
AngularJS Expression Application Data को HTML Elements मे Bind होता है. इस को हम दो Curly Braces के अंदर लिखते यह हमे Javascript Expression को Reminds कराता है. इसलिए Angularjs Expression Javascript से Different होता है.
Expressions को Double Braces {{expression}} मे लिखा जाता है यह Instructions के अंदर भी लिखा जा सकता है.
ng-bind="expression".
<!DOCTYPE html>
<html>
<head>
<title>Angularjs Expressions Example</title>
<script src =
"https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js">
</script>
</head>
<body>
<div ng-app>
<p>My Angularjs Expressions: {{ 5 + 5 }}</p>
</div>
</body>
</html>
हम Angular Expressions मे Numbers या Numerical Values का उपयोग कर सकते है और Numerical Values मे Decimal Value भी हो सकते है.
<!DOCTYPE html>
<html>
<head>
<title>Angular Expressions Number Example</title>
<script src =
"https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js">
</script>
</head>
<body>
<div ng-app="" ng-init="quantity=6;cost=6">
<p>Total in dollar: {{ quantity * cost }}</p>
</div>
</body>
</html>