相关疑难解决方法(0)

使用angular-ui-bootstrap在AngularJS中的路径中打开模态

我试图做的基本上是在这里回答无法打开引导模态窗口作为路线

然而,我的解决方案是行不通的.我收到一个错误

Error: [$injector:unpr] Unknown provider: $modalProvider <- $modal

My app has the ui.bootstrap module injected - here is my application config

var app = angular.module('app', ['ui.router', 'ui.bootstrap','ui.bootstrap.tpls', 'app.filters', 'app.services', 'app.directives', 'app.controllers'])

    // Gets executed during the provider registrations and configuration phase. Only providers and constants can be
    // injected here. This is to prevent accidental instantiation of services before they have been fully configured.
    .config(['$stateProvider', '$locationProvider', function ($stateProvider, $locationProvider) {

        // UI States, URL Routing & Mapping. For …
Run Code Online (Sandbox Code Playgroud)

javascript angularjs angular-ui-bootstrap angular-ui-router

7
推荐指数
2
解决办法
3万
查看次数