How to navigate between pages using ngRoute in angularjs?
index.html :
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="/" />
<title></title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.8/angular.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.7.8/angular-route.min.js"></script>
<script src="https://cdn.jsdelivr.net/ngstorage/0.3.6/ngStorage.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap" rel="stylesheet">
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<script src="https://cdn.zingchart.com/zingchart.min.js"></script>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap" rel="stylesheet">
<script src="EBSAjsN/app.module.js"></script>
<script src="EBSAjsN/app.config.js"></script>
<script src="EBSAjsN/Scripts/loginController.js"></script>
<script src="EBSAjsN/Scripts/dashboardController.js"></script>
<script src="EBSAjsN/Scripts/receiptController.js"></script>
<script src="EBSAjsN/Scripts/issueController.js"></script>
</head>
<body ng-app="myApp">
<div ng-view></div>
</body>
</html>
app.config.js :
'use strict';
angular.module('myApp')
.config(['$routeProvider', '$locationProvider', function ($routeProvider, $locationProvider) {
$routeProvider.
when('/EBSAjsN', {
templateUrl: 'EBSAjsN/Views/login.html',
controller: 'loginController'
})
.when('/dashboard', {
templateUrl: 'EBSAjsN/Views/dashboard.html',
controller: 'dashboardController'
})
.when('/receipt', {
templateUrl: 'EBSAjsN/Views/receipt.html',
controller: 'receiptController'
})
.when('/issue', {
templateUrl: 'EBSAjsN/Views/issue.html',
controller: 'issueController'
})
.otherwise({
redirectTo: '/'
});
$locationProvider.html5Mode(true);
}]);
app.module.js :
angular.module('myApp', ['ngRoute', 'ngStorage']);
I have three pages after logging in . I don't know how to navigate between them.