bonjour
Est que vous pouvez me répondre pourquoi mon code ne marche pas sachant que je voudrait une page HTML diviser en des "<div>" et contrôler la visibilité à partir d'un contrôleur avec Angularjs S'il vous aidez pour que ça fonctionne.
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<html>
<head>
<title>Puissance4</title>
<style type="css/text" src="mouvement.css"></style>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/js/bootstrap.min.js"></script> 
</head>
<body>
<div  ng-controller="WelcomeControllor" ng-show="ShowPage" >
<div class="jumbotron">
<div class="container">
		<h1>Welcome</h1>
		<button ng-click="ClickFunction()">Play</button>
</div>
</div>
</div>
<!-- <div ng-controller="GameBoard" ng-show="pageGame"></div>
<div   ng-controllor="gameOver" ng-show="pageLose"> </div>
<div  ng-controllor="Congratulation" ng-show="pageCongratulation" ></div>  -->
<!--  <canvas id="mycanvas" width="500" height="500"> </canvas> 
 --> 
 <script type="text/javaScript">
var ShowPage=true
function WelcomeControllor {
$scope.ClickFunction=function(){
ShowPage=false;
}});
/*$(document).ready(function(){
  $("#mycanvas").click(function(){
    $( "#mycanvas").slideDown();
  });
});*/
</script>
</body>
</html>