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

后端 未结 5 852
生来不讨喜
生来不讨喜 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:24

    You are trying to reference a controller that is part of a separate module. In order for this to work, you need to inject your secondary module (addEntry) into your main module (nav):

    var app = angular.module('nav', ['ui.bootstrap', 'addEntry']);
    

提交回复
热议问题