2
votes

I am new to Angular and trying to use $uibmodal but getting the below error while running: Error: [$injector:unpr] Unknown provider: $uibmodalProvider <- $uibmodal

I am using the below versions: Angular version: 1.5.11 Angular Bootstrap version: 2.5.0.

I think there is some compatibility issue between the versions.
Any help is highly appreciated.

1
Have you injected the UI-bootstrap module ('ui.bootstrap') into your app's root module?Ben Beck
Added $uibmodal in dependancy injection?user4870812
I have injected 'ui.bootstrap' into the app's root module: var myApp= angular.module('myApp', ['ui.bootstrap',]Atif
Added the $uibmodal in dependancy injection, still getting the same error.Atif

1 Answers

1
votes

By looking at error it seems like you made typo in dependency name, it should be $uibModal instead of $uibmodal