私は次のapp.jsを持っており、モジュールでアプリケーションを呼び出すことができません。フォルダ構造とコードの添付のスクリーンショット:ngアプリケーションをインスタンス化できません
core.module.js:
(function() {
'use strict';
angular
.module('app.core');
})();
(function() {
'use strict';
angular
.module('app', [
'ngRoute',
'ngCookies',
'ngAnimate',
'ngResource',
'ngCookies',
'ngTouch',
'app.core',
'app.events'
])
.config(config);
config.$inject = ['$routeProvider', '$locationProvider', '$httpProvider'];
function config($routeProvider, $locationProvider, $httpProvider) {
$routeProvider
.when('/', {..}..
Uncaught Error: [$injector:nomod] Module 'app.core' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
私はこれをやっていますが、まだ同じエラーが表示されていますし、スクリーンショットも更新されています - 不明なプロバイダのServiceFactory! – Smitha
はこれらすべてを試しましたが、助けてくれませんでした! – Smitha