https://i.sstatic.net/u8QL3.jpg shows the error that I'm encountering.
dicym.js
var app = angular.module('diycm', ['ngRoute', 'LocalStorageModule']);
// Routing setup
app.config(function ($routeProvider) {
$routeProvider
.when('/home', {
templateUrl: 'views/home.html',
controller: 'homeController',
title: 'Home'
})
.when('/projects', {
templateUrl: 'views/projects.html',
controller: 'homeController',
title: 'Projects'
})
.when('/singleProject', {
templateUrl: 'views/singleProject.html',
controller: 'homeController',
title: 'Project Details'
});
$routeProvider.otherwise({ redirectTo: "/home" });
});
// Manages rootscope
app.run(function ($rootScope, $route) {
$rootScope.$on("$routeChangeSuccess", function (currentRoute, previousRoute) {
// Change page title based on Route information
$rootScope.title = $route.current.title;
});
});
homeController.js
app.controller('homeController', function ($scope, $http) {
$scope.message = 'Everyone come and look!';
});
sidebarController.js
app.controller('sidebarController', function ($scope, $location) {
$scope.isActive = function (viewLocation) {
return viewLocation === $location.path();
};
});
index.html
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.2/angular.min.js" type="text/javascript"></script>
<script src="https://code.angularjs.org/1.4.5/angular-route.js" type="text/javascript"></script>
<script src="js/diycm.js"></script>
<script src="js/angular-local-storage.min.js"></script>
<script src="js/controllers/sidebarController.js"></script>
<script src="js/controllers/homeController.js"></script>
Any suggestions on what might be causing this issue? I am new to angular and have not found much help in the documentation or previous questions.