ng-app,ng-model,ng-bindEnter 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> |