Tutorialsplane

AngularJs ng-model


AngularJs ng-model directive : AngularJs ng-model directive is used to associate the Html controls (variables) with the application


Syntax : AngularJs ng-model

<div ng-app="">

<div ng-app="" ng-init="a=9;b=10">
    <p>Enter value of a </p>
    <p>Enter value of a </p>
    <p>Multiplication of aXb = {{a*b}}</p>
</div>

</div>

Note you can give your ng-app name.

Let us understand with simple example

Example 1




    



<div ng-app="" ng-init="a=9;b=10">
    <p>Enter value of a </p>
    <p>Enter value of a </p>
    <p>Multiplication of aXb = {{a*b}}</p>
</div>


Try it ยป

Tutorial

Expressions

AngularJs Directives

Controllers

AngularJs Filters

Http Methods

AngularJs Tables

Events

AngularJs Modules