I am new to AngularJs. I am currently using a wamp server and have successfully loaded the HTML page, but unfortunately the view is not being displayed. I have added ng-app to the body as well, but still unable to load the view.
<!DOCTYPE html>
<html>
<head>
<title>AngularJs | Basic Login Form</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.23/angular.min.js"></script>
<script src="angular-route.min.js"></script>
<!-- -->
</head>
<body>
<body ng-app="myApp">
<div ng-view>
</div>
<script>
var myApp = angular.module("myApp",["ngRoute"]);
myApp.config(function($routeProvider){
$routeProvider
.when('/', {
templateUrl: 'page.html'
})
.when('/hello',{
templateUrl:'hello.html'
})
.otherwise({
redirectTo: '/'
});
});
</script>
</body>
</html>