<!DOCTYPE html> <html lang="en" ng-app="myapp"> <head> <meta charset="UTF-8"> <title>Anuglar js First Example</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.7/angular.min.js"></script> </head> <body> <div > <input type="text" ng-model="username"/> Hello {{username} } </div> </body> <script> var app = angular.module('myapp',[]); //initializing the angular application module </script> </html>
Output
Hello {{username}}
0 comments:
Post a Comment