I encountered an error message while trying to load my page using Angular.js.
Error:
angularjslatest.js:7 Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.6.5/$injector/modulerr?p0=bookingjini&p1=Error%3A%20%5B%24injector%3Amodulerr%5D%20http%3A%2F%2Ferrors.angularjs.org%2F1.6.5%2F%24injector%2Fmodulerr%3Fp0%3D720kb.datepicker%26p1%3DError%253A%2520%255B%2524injector%253Anomod%255D%2520http%253A%252F%252Ferrors.angularjs.org%252F1.6.5%252F%2524injector%252Fnomod%253Fp0%253D720kb.datepicker%250A%2520%2520%2520%2520at%2520http%253A%252F%252F10.25.25.100%252Fbookingjini%252Fjs%252Fangular...
Below, I have included the code snippet that is causing this issue.
index.html:
<!DOCTYPE html>
<html lang="en" ng-app="bookingjini">
<!--<![endif]-->
<head>
<meta charset="utf-8">
<title>Home</title>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="format-detection" content="telephone=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<link href="http://fonts.googleapis.com/css?family=Lato:300,400%7COpen+Sans:300,400,600" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="css/library/font-awesome.min.css">
...
<p>route.js:</p>
<pre><code>var Admin=angular.module('bookingjini',['ui.router', '720kb.datepicker','ngMessages','ngCapsLock','ui.bootstrap','ngFileUpload','angularUtils.directives.dirPagination','angular.chosen']);
Admin.run(function($rootScope, $state) {
$rootScope.$state = $state;
});
Admin.config(function($stateProvider, $urlRouterProvider) {
$urlRouterProvider.otherwise('/');
$stateProvider
.state('/',{
url: '/',
templateUrl: 'view/home.html',
controller: 'homeController'
})
})
I am utilizing Angular version 1.6.x
and Angular ui-router
version @version v1.0.3
. The mentioned error occurs when attempting to load the index page.