2015-04-07 22:38:36 +02:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta charset="utf8">
|
|
|
|
<title>Exercice: création de service</title>
|
|
|
|
</head>
|
|
|
|
<!-- Déclaration de l'application -->
|
|
|
|
<body ng-app="Exo">
|
|
|
|
|
|
|
|
<div ng-controller="MainCtrl">
|
|
|
|
<label>Question</label>
|
|
|
|
<input type="text" ng-model="question" />
|
2015-04-08 23:22:53 +02:00
|
|
|
<button ng-click="poserQuestion()">Poser la question</button>
|
|
|
|
<br /><br />
|
2015-04-07 22:38:36 +02:00
|
|
|
<b>Votre réponse:</b> <span>{{ response }}</span>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Import de du framework Angular -->
|
|
|
|
<script src="../node_modules/angular/angular.js"></script>
|
|
|
|
<script src="app.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|