HTML file
<!DOCTYPE html>
<html ng-app="tutorialApp">
<head>
<meta charset="UTF-8">
<title>Tutorial App</title>
<script src="lib/angular.min.js"></script>
<script src="lib/angular-route.min.js"></script>
<script src="JS/app.js"></script>
<script src="JS/controller/tutorialCtrl.js"></script>
</head>
<body>
<div ng-view></div>
</body>
</html>
js file
var app = angular.module("tutorialApp", ["ngRoute", "tutorialCtrlModule"]);
app.config(function ($routeProvider) {
$routeProvider
.when("/", {
templateUrl: "views/tutorial.html",
controller: "TutorialCtrl"
})
.when("/tutorialSecond", {
templateUrl: "views/tutorialSecond.html",
controller: "TutorialCtrl2"
})
.otherwise({
redirectTo: "/"
});
});
When I run HTML file I see the first page. When I click to link that I created, it does not get me to the link. For the js file, there is an error "ReferenceError: angular is not defined" I do not know what to do.