HOW TO ADD TOW NUMBER IN ANGULARJS.

Ankit Singh

Total Post:341

Points:2389
Posted by  Ankit Singh
 561  View(s)
Ratings:
Rate this:
i want to Add two number in angularjs. please help me
  1. aditya kumar Patel

    Post:254

    Points:1810
    Re: How to add tow number in Angularjs.

    Install angularjs and write following code.

    <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AngulerJS.aspx.cs" Inherits="Forumasp.AngulerJS" %>

    <!DOCTYPE html>

    <html xmlns="http://www.w3.org/1999/xhtml">

    <head runat="server">

    <title></title>

    <script src="Scripts/jquery-2.1.4.js"></script>

    <script src="Scripts/angular.js"></script>

    </head>

    <body>

    <form id="form1" runat="server">

    <div>

    <div ng-app="">

    <h3>Using Input Type Number</h3>

    <p>First Number:

    <input type="number" ng-model="a" />

    </p>

    <p>Second Number:

    <input type="number" ng-model="b" />

    </p>

    <p>Sum: {{ a + b }}</p>

    </div>

    </div>

    </form>

    </body>

    </html>

     

      Modified On Nov-08-2015 10:48:49 PM

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!