我的网站在计算机浏览器上运行良好,但是当我尝试在智能手机浏览器上执行它时,我发错了,告诉我有一个“错误:[$ injector:modulerr]”。
我已经包含了angular.min.js(1.4.7)和angular-route.min.js(1.4.7)
的index.html
<script src="bower_components/angular/angular.min.js"></script>
<script src="bower_components/angular-route/angular-route.min.js"></script>
app.js
'use strict';
/* App Module */
var arevia = angular.module('arevia', ['ngRoute','areviaControllers','areviaServices','ngToast']);
arevia.config(['$routeProvider','$locationProvider', function ($routeProvider,$locationProvider) {
$routeProvider.
when('/', {
templateUrl: '/Arevia/appEN/partials/home.min.html',
url: '/protected'
}).
when('/profile', {
templateUrl: '/Arevia/appEN/partials/profile.min.html'
}).
when('/inspirations', {
templateUrl: '/Arevia/appEN/partials/inspirations.min.html'
}).
when('/interventions', {
templateUrl: '/Arevia/appEN/partials/interventions.min.html'
}).
when('/whyArevia', {
templateUrl: '/Arevia/appEN/partials/whyArevia.min.html'
}).
when('/shop', {
templateUrl: '/Arevia/appEN/partials/shop.min.html'
}).
when('/contact', {
templateUrl: '/Arevia/appEN/partials/contact.min.html',
controller: 'ContactCtrl'
}).
when('/noNewsletter/:email/:token', {
templateUrl: '/Arevia/appEN/partials/noNewsletter.min.html',
controller: 'NewsletterCtrl'
}).
when('/theWorldOfArevia', {
templateUrl: '/Arevia/appEN/partials/theWorldOfArevia.min.html',
controller: 'BlogCtrl',
resolve: {
session: ['SessionResolver', function resolveSession(SessionResolver) {
return SessionResolver.resolve();
}]
},
redirection: ['AuthService', function (AuthService) {
if(AuthService.isAuthenticated()){
return '/theWorldOfArevia';
}
}]
}).
otherwise({
redirectTo: '/',
});
$locationProvider.html5Mode(false);
顺便说一句,我的所有脚本和Html文档都被缩小了(如果它有用的话,就是idk)。
非常感谢。