Addition of Two Numbers in AngularJS


Simple AngularJs Program for Addition of two numbers.

AngularJS Reference

AngularJS library written in JavaScript. Angular js reference file is given below.

<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>

Here is the complete code :

<div ng-app="">
<h3>Using Input Type Number</h3>
First Number :
        <input type="number" ng-model="c" />
Second Number :
        <input type="number" ng-model="d" />
Sum Of Two Number's : {{ c + d }}
</div>

Output :

addnumbersCheck Live Demo Here : Addition Of Two Numbers Using AngularJs

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s