添加到模块时,AngularJs app会中断

时间:2014-06-09 14:31:44

标签: javascript angularjs

我有一个 angular.js 应用程序可以正常工作......

'use strict';
var urlRouterProvider, stateProvider;


angular.module('myApp', [
    'ngCookies',
    'ngResource',
    'ngSanitize',
    'ui.router',
    'ui.bootstrap',
    'kinvey'  
])

当我尝试添加指令(如下所示)

'use strict';
var urlRouterProvider, stateProvider;

angular.module('myApp', [
    'ngCookies',
    'ngResource',
    'ngSanitize',
    'ui.router',
    'ui.bootstrap',
    'kinvey',
    'myApp.directives'   
])

但是,它不再适用于Chrome控制台说...

"uncaught object" throw $injectorMinErr('modulerr', "Failed to instantiate module {0} due to:\n{1}",

1 个答案:

答案 0 :(得分:0)

忘记将其添加到我的index.html sourcefiles