AngularJs Bootstrap UI 简单的喷油器错误
AngularJs Bootstrap UI Simple injector error
我正在使用 ui-bootstrap-tpls-0.14.3.min 但是下面的代码给出了类似这样的错误。问题是什么?
"Error: [$injector:unpr] http://errors.angularjs.org/1.4.7/$injector/unpr?p0=%24modalProvider%20%3C-%20%24modal%20%3C-%20InterfacePageController"
function InterfacePageController(HttpService, crypto, $routeParams, $uibModal, $log) {
...
}
确保您的主模块中包含 ui.bootstrap
,例如:
app.module("myApp", ["ui.bootstrap")
我正在使用 ui-bootstrap-tpls-0.14.3.min 但是下面的代码给出了类似这样的错误。问题是什么?
"Error: [$injector:unpr] http://errors.angularjs.org/1.4.7/$injector/unpr?p0=%24modalProvider%20%3C-%20%24modal%20%3C-%20InterfacePageController"
function InterfacePageController(HttpService, crypto, $routeParams, $uibModal, $log) {
...
}
确保您的主模块中包含 ui.bootstrap
,例如:
app.module("myApp", ["ui.bootstrap")