This is index.html file
<!doctype html>
<html ng-app="mm">
<head>
<title>Country page</title>
<script src="js/angular.js"></script>
<link href="js/bootstrap.css" rel="stylesheet" />
<link href="js/bootstrap-theme.css" rel="stylesheet" />
<link href="css/style.css" rel="stylesheet" />
<script src="app.js"></script>
<style>
.box {
margin:0px auto;
width: 400px
}
</style>
</head>
<body>
<div class="box" ng-controller="mc">
<p ng-if="bool">Hello!!!</p>
</div>
</body>
</html>
This is app.js file
var mm = angular.module('mm', []);
var mc = mm.controller('mc', function ($scope){
$scope.bool = false;
});
I am very beginer at AngularJS and I am confused why "Hello!!!" still on my page but my bool variable is "false".