Created
January 20, 2015 20:37
-
-
Save AndrianD/701562bb671f088bca80 to your computer and use it in GitHub Desktop.
application_test
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
| <html> | |
| <head> | |
| <title>app.html</title> | |
| <meta charset="utf-8" /> | |
| <script type="text/javascript" src="bower_components/angular/angular.js"></script> | |
| </head> | |
| <!--ng-app permet de démarrer la compilation d'AngularJS--> | |
| <body ng-app="myApp"> | |
| <label> | |
| <input type="text" ng-model="myTest"/> | |
| </label> | |
| {{ myTest }} | |
| <p> | |
| je suis un simple paragraphe | |
| </p> | |
| <p ng-controller="doudou"> | |
| {{ prop1 }} | |
| </p> | |
| <script> | |
| var app = angular.module('myApp', []); | |
| app.controller('doudou', ['$scope',function($scope){ | |
| $scope.prop1 = "je suis doudou"; | |
| }]); | |
| </script> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment