Created
July 14, 2014 23:09
-
-
Save musghost/d2adf8851aaa5e09a5c9 to your computer and use it in GitHub Desktop.
My first AngularJS application II
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 > | |
| <head> | |
| <title>My fist AngularJS app</title> | |
| <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.0/angular.min.js"></script> | |
| </head> | |
| <body ng-app> | |
| <div ng-controller="miPrimerControlador"> | |
| <p>{{ modelo.texto }}</p> | |
| <input ng-model='modelo.texto'> | |
| </div> | |
| <script type="text/javascript"> | |
| function miPrimerControlador($scope){ | |
| $scope.modelo = { | |
| texto: 'hola' | |
| } | |
| } | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment