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

32 lines
657 B
HTML
Raw Permalink Normal View History

<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"/>
<br />
<label>Prénom</label>
2015-04-08 23:22:53 +02:00
<input type="text" ng-model="prenom"/>
<br />
<label>Age</label>
2015-04-08 23:22:53 +02:00
<input type="number" ng-model="age"/>
<br />
2015-04-08 23:22:53 +02:00
<button ng-click="sayHello()">Dire bonjour</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>