The largest Interview Solution Library on the web


« Previous | 1 | 2 | 3 | Next »
AngularJS First Application

ng-app,ng-model,ng-bind

Enter your Name:

Hello !

<html>
<head>
<title>AngularJS First Application</title>
</head>
<!--ng-app − This directive defines and links an AngularJS application to HTML.-->
<!--ng-model − This directive binds the values of AngularJS application data to HTML input controls.-->
<!--ng-bind − This directive binds the AngularJS Application data to HTML tags.-->
<body>
<h1>ng-app,ng-model,ng-bind</h1>
<div ng-app="">
<p>
Enter your Name: <input type="text" ng-model="name">
</p>
<p>
Hello <span ng-bind="name"></span>!
</p>
</div>
</body>
</html>
« Previous | 1 | 2 | 3 | Next »


copyright © 2014 - all rights riserved by javatechnologycenter.com