Angular UI Bootstrap Modal: [$injector:unpr] Unknown provider: $uibModalInstanceProvider

后端 未结 5 856
生来不讨喜
生来不讨喜 2020-12-14 08:54

This is a bit strange. When I search this issue online I see many pages of Google results and SO solutions... but none seem to work!

In a nutshell, I am trying to

5条回答
  •  没有蜡笔的小新
    2020-12-14 09:51

    The problem was that you were specifying a (or double) controller(s) in 2 places- when opening a modal and inside a template - this is not needed. Remove ng-controller from a template and things will work as expected.Trust me,it will work.

提交回复
热议问题