Skip to content

Instantly share code, notes, and snippets.

@AndrianD
Created January 20, 2015 20:37
Show Gist options
  • Select an option

  • Save AndrianD/701562bb671f088bca80 to your computer and use it in GitHub Desktop.

Select an option

Save AndrianD/701562bb671f088bca80 to your computer and use it in GitHub Desktop.
application_test
<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