formations/javascript/angular/exercices/include/.solution/index.html

19 lines
516 B
HTML
Raw Normal View History

2015-04-09 00:19:37 +02:00
<html>
<head>
<meta charset="utf8">
<title>Exercice: inclusion de template</title>
</head>
<!-- Déclaration de l'application -->
<body ng-app="Exo">
<div ng-controller="MainCtrl">
<select ng-options="page.label for page in pages" ng-model="selectedPage"></select>
<ng-include src="'pages/'+selectedPage.template+'.html'"></ng-include>
</div>
<!-- Import de du framework Angular -->
<script src="../../node_modules/angular/angular.js"></script>
<script src="app.js"></script>
</body>
</html>