2015-04-06 17:50:08 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf8">
|
|
|
|
<title>Exercice manipulation $scope et contrôleur</title>
|
|
|
|
</head>
|
|
|
|
<!-- Déclaration de l'application -->
|
|
|
|
<body ng-app="Exo">
|
|
|
|
|
|
|
|
<div ng-controller="MainCtrl">
|
|
|
|
|
|
|
|
<label>Nom</label>
|
2015-04-08 23:22:53 +02:00
|
|
|
<input type="text" ng-model="nom"/>
|
2015-04-06 17:50:08 +02:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<label>Prénom</label>
|
2015-04-08 23:22:53 +02:00
|
|
|
<input type="text" ng-model="prenom"/>
|
2015-04-06 17:50:08 +02:00
|
|
|
<br />
|
|
|
|
|
|
|
|
<label>Age</label>
|
2015-04-08 23:22:53 +02:00
|
|
|
<input type="number" ng-model="age"/>
|
2015-04-06 17:50:08 +02:00
|
|
|
<br />
|
|
|
|
|
2015-04-08 23:22:53 +02:00
|
|
|
<button ng-click="sayHello()">Dire bonjour</button>
|
2015-04-06 17:50:08 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Import de du framework Angular -->
|
2015-04-08 23:22:53 +02:00
|
|
|
<script src="../../node_modules/angular/angular.js"></script>
|
2015-04-06 17:50:08 +02:00
|
|
|
<script src="app.js"></script>
|
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|