Home
Tutorials
Microsoft Technologies Tutorials
Java Programming Tutorials
Web Designing Tutorials
Script Programming Tutorials
Database Programming Tutorials
Mobile Technologies Tutorials
Other Programming Tutorials
Examples
Articles
Tools
News
AngularJS Number Expressions Example
Keywords : Use number expressions in angularjs with example, AngularJS expression numbers example, Angularjs number expressions documentation, Angularjs add numbers using number expressions example
Example
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Number Expression of AngularJs</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script> <script type="text/javascript"> var app = angular.module('expressionApp', []) app.controller("expressionController", function ($scope) { $scope.expression1 = 10; $scope.expression2 = 20 }); </script> </head> <body ng-app="expressionApp"> <form id="form1"> <div ng-controller="expressionController"> <div>Number Expression</div> <p>The Result is : {{expression1 + expression2}}</p> </div> </form> </body> </html>
Click Here to See Result
Result
Previous
Next