Created
December 16, 2016 22:22
-
-
Save javaeeeee/3523ea3fa0b1647e047dea0ae6cd0234 to your computer and use it in GitHub Desktop.
A snippet of HTML code with AngularJS added using script tag and ng-model directive is used
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Hello World AngularJS application</title> | |
| <script data-require="[email protected]" data-semver="1.6.0" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.0/angular.js"></script> | |
| </head> | |
| <body ng-app> | |
| <h1>Hello World AngularJS application</h1> | |
| <section> | |
| <h4>AngularJS Greeting</h4> | |
| <label for="name">Type your name here:</label> | |
| <input id=name type="text" ng-model="myModel"> | |
| <p>Hello {{myModel}}!</p> | |
| </section> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment