Created
August 21, 2013 11:05
-
-
Save timbergus/6293123 to your computer and use it in GitHub Desktop.
This is a basic angular code example from http://angularjs.org/. It shows how to build a simple editable field through a text input.
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 ng-app> | |
| <head> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script> | |
| </head> | |
| <body> | |
| <div> | |
| <label>Name:</label> | |
| <input type="text" ng-model="yourName" placeholder="Enter a name here"> | |
| <hr> | |
| <h1>Hello {{yourName}}!</h1> | |
| </div> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment