私の Web サイトはコンピューターのブラウザーでは正常に動作していますが、スマートフォンのブラウザーで実行しようとすると、「エラー: [$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 ドキュメントはすべて縮小されています (役に立つかどうかはわかりませんが...)。
どうもありがとう。