bonjour,j'ai commencé une auto-formation sur le framwork angularjs mais j'ai eu certains problèmes pour lorsque j'ai voulu exécuter mon premier test,lorsque j'utilise la directive ng-app="myApp" ou ng-controller="myController" le frame work ne s'éxécute plus sur la vue htmal.
var test=angular.modul("myApp",[]);
le controller:
test.controller("myController",["$scope",function($scope){
$scope.nom="kherouidi mehdi";
}]);
la vue html:
<html ng-app="myApp">
<head>
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
<script type="text/javascript" src="js/controller.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Bonjour dans mon premier test angular</title>
</head>
<body ng-controller="myController">
{{nom}}
<div >
<input type="text" ng-model="nom">
<button >click</button>
{{nom}}
</div>
</body>
</html>