私のプロジェクトでこの警告が表示されています。これは、私のバックエンドのAPIを呼び出す際に問題を引き起こしています。私はフォーラムでこの同じ質問に関して前に投稿された解決策を試しましたが、私はこれを乗り越えることができません。もし誰かが私を助けてくれたら大丈夫だろう。以下はapp.jsとindex.htmlファイルです。あなたのコードで警告:ページの読み込み中に角を複数回ロードしようとしました
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Qwinix Aptitude Test</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
<!-- build:css(.) styles/vendor.css -->
<!-- bower:css -->
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
<!-- endbower -->
<!-- endbuild -->
<!-- build:css(.tmp) styles/main.css -->
<link rel="stylesheet" href="styles/styles.css">
<link rel="stylesheet" type="text/css" href="styles/question/normalize.css" />
<link rel="stylesheet" type="text/css" href="styles/question/demo.css" />
<link rel="stylesheet" type="text/css" href="styles/question/component.css" />
<!-- <link rel="stylesheet" type="text/css" href="bower_components/font-awesome/css/font-awesome.min.css" /> -->
<!-- <link rel="stylesheet" type="text/css" href="bower_components/semantic/dist/semantic.css"> -->
<link rel="stylesheet" type="text/css" href="styles/scss/style.scss">
<!-- <link rel="stylesheet" type="text/css" href="components/angular-ui/build/angular-ui.css"> -->
<!-- endbuild -->
</head>
<body data-ng-view="" ng-app="onlineTestAngularApp">
<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
<script src="bower_components/angular-aria/angular-aria.js"></script>
<script src="bower_components/angular-cookies/angular-cookies.js"></script>
<script src="bower_components/angular-messages/angular-messages.js"></script>
<script src="bower_components/angular-resource/angular-resource.js"></script>
<script src="bower_components/angular-route/angular-route.js"></script>
<script src="bower_components/angular-sanitize/angular-sanitize.js"></script>
<script src="bower_components/angular-touch/angular-touch.js"></script>
<script src="bower_components/angular-local-storage/dist/angular-local-storage.js"></script>
<script src="bower_components/moment/moment.js"></script>
<script src="bower_components/humanize-duration/humanize-duration.js"></script>
<script src="bower_components/angular-timer/dist/angular-timer.js"></script>
<script src="bower_components/semantic/dist/semantic.js"></script>
<script src="bower_components/angular-fontawesome/dist/angular-fontawesome.js"></script>
<script src="bower_components/angular-drag-and-drop-lists/angular-drag-and-drop-lists.js"></script>
<!-- endbower -->
<!-- endbuild -->
<!-- build:js({.tmp,app}) scripts/scripts.js -->
<script src="scripts/app.js"></script>
<script src="scripts/config.js"></script>
<script src="scripts/controllers/main.js"></script>
<script src="scripts/controllers/about.js"></script>
<script src="scripts/controllers/registration.js"></script>
<script src="scripts/services/registration.js"></script>
<script src="scripts/controllers/question.js"></script>
<script src="scripts/controllers/feedback.js"></script>
<script src="scripts/services/feedback.js"></script>
<script src="scripts/services/question.js"></script>
<script src="scripts/controllers/index.js"></script>
<script src="scripts/controllers/instruction.js"></script>
<script src="scripts/services/admin.js"></script>
<script src="scripts/controllers/admin.js"></script>
<script src="scripts/my_jquery.ui.js"></script>
<script src="scripts/lib/angular-timer.js"></script>
<!-- endbuild -->
</body>
</html>
'use strict';
/**
* @ngdoc overview
* @name onlineTestAngularApp
* @description
* # onlineTestAngularApp
*
* Main module of the application.
*/
angular
.module('onlineTestAngularApp', [
'ngAnimate',
'ngAria',
'ngCookies',
'ngMessages',
'ngResource',
'ngRoute',
'ngSanitize',
'ngTouch',
'LocalStorageModule',
'config',
'timer'
])
.config(function ($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'views/registration.html',
controller: 'registrationCtrl',
controllerAs: 'registration'
})
.when('/instruction', {
templateUrl: 'views/instruction.html',
controller: 'instructionCtrl',
controllerAs: 'instruction'
})
.when('/question', {
templateUrl: 'views/question.html',
controller: 'questionCtrl',
controllerAs: 'question'
})
.when('/feedback', {
templateUrl: 'views/feedback.html',
controller: 'feedbackCtrl',
controllerAs: 'feedback'
})
.when('/admin', {
templateUrl: 'views/admin.html',
controller: 'adminCtrl',
controllerAs: 'admin'
})
.otherwise({
redirectTo: '/'
});
});
'angular-timer.js'という2つの異なるスクリプトを含めるつもりでしたか? – jbrown
@jbrownは彼のように見えますが、私は彼のエラーの原因とは考えていません....?それは...ですか? – trickpatty
@PatrickLawler - 私は分かりませんが、それは答えに対する試行ではなく、一般的なコメントでした。 – jbrown