Angularjs Examples

AJS Examples


AngularJS Expression using ng-bind with Number

In this AngularJS expression example you will learn how to use ng-bind with Number to bind data in HTML DOM elements.

Here you can view the output of the example and you can also "try it yourself" by clicking on "Live Demo" button given at the bottom.

AngularJS ng-bind with Number

AngularJS ng-bind with Number expressions.

Syntax

<div ng-init="num1=108;num2=20">
 <b>Expression Result : <span ng-bind="num1 + num2"></span></b>
	</br>   
</div>       

AngularJS Expression using ng-bind with Number Example

<!DOCTYPE html>  
<!DOCTYPE html>  
<html>    
<head>  <!-- www.techstrikers.com -->  
<title>Expression with Number using ng-bind in AngularJS</title>    
<script SRC="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js">    
</script>    
</head>    
<body ng-app=''>   
 <fieldset style="background-color:#DDE4E9;font-family:arial;">              
    <legend>AngulerJS Expression with Number using ng-bind Example</legend>    
   <div ng-init="num1=108;num2=20">
     <b>Expression Result : <span ng-bind="num1 + num2"></span></b>
        </br>   
    </div>     
 </fieldset>     
</body>    
</html>