2015-04-06 17:50:08 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf8">
|
2015-04-08 23:22:53 +02:00
|
|
|
<title>Exercice: utilisation de service</title>
|
2015-04-06 17:50:08 +02:00
|
|
|
</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="data.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="data.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="data.age" />
|
2015-04-06 17:50:08 +02:00
|
|
|
<br />
|
|
|
|
|
2015-04-08 23:22:53 +02:00
|
|
|
<button ng-click="sendData()">Envoyer</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>
|