formations/javascript/angular/exercices/services-1/.solution/index.html

31 lines
658 B
HTML
Raw Permalink Normal View History

<html>
<head>
<meta charset="utf8">
2015-04-08 23:22:53 +02:00
<title>Exercice: utilisation de service</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="data.nom" />
<br />
<label>Prénom</label>
2015-04-08 23:22:53 +02:00
<input type="text" ng-model="data.prenom" />
<br />
<label>Age</label>
2015-04-08 23:22:53 +02:00
<input type="number" ng-model="data.age" />
<br />
2015-04-08 23:22:53 +02:00
<button ng-click="sendData()">Envoyer</button>
</div>
<!-- Import de du framework Angular -->
2015-04-08 23:22:53 +02:00
<script src="../../node_modules/angular/angular.js"></script>
<script src="app.js"></script>
</body>
</html>