jameskleeh / angular-confirm

Confirmation modal dialog for AngularJS
Apache License 2.0
150 stars 75 forks source link

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

Closed realdammy closed 8 years ago

realdammy commented 8 years ago

Hello, Thanks for this wonderful plugin. I am having issues using the plugin. Anytime i included the 'angular-confrim' module in my App.module, i get the error below

Error: [$injector:unpr] Unknown provider: $modalProvider <- $modal <- $confirm Here's my App module config var App= angular.module('escrow',['datatables','datatables.bootstrap','ngRoute','datatables.buttons','angular-confirm','ui.bootstrap'])

And here is my controller App.controller('BankMerchantListCtrl',function($scope, $compile, $confirm, $uibModal, DTOptionsBuilder, DTColumnBuilder,BankService) {

jameskleeh commented 8 years ago

What version of ui.bootstrap? What version of angular-confirm?

realdammy commented 8 years ago

Hello I just realized the version of the $cofirm project on demo site (http://schlogen.github.io/angular-confirm/) is different from the one on github. The one on the demo site uses an older version of bootstrap UI. But after pulling the $confim project from github, everything works fine. Thanks alot.