我有一个 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}",
答案 0 :(得分:0)
忘记将其添加到我的index.html sourcefiles