Here is simple hello example with AngularJs. To use AngularJs in your project, you just need to add reference of single angular JavaScript file. You can simply download script and host on your host or directly use Google cdn like below example.
1 2 3 4 5 6 7 8 9 10 11 12 | <!DOCTYPE html> <html lang="en-US"> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.7/angular.min.js"></script> <body> <div ng-app=""> <p>Type Your Name : <input type="text" ng-model="name"></p> <h1>Hello {{name}}</h1> </div> </body> </html> |
View Running Example:
Type Your Name :
Comments
Post a Comment