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

32 lines
657 B
HTML

<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>
<input type="text" ng-model="nom"/>
<br />
<label>Prénom</label>
<input type="text" ng-model="prenom"/>
<br />
<label>Age</label>
<input type="number" ng-model="age"/>
<br />
<button ng-click="sayHello()">Dire bonjour</button>
</div>
<!-- Import de du framework Angular -->
<script src="../../node_modules/angular/angular.js"></script>
<script src="app.js"></script>
</body>
</html>