Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular Unknown provider: $modalProvider <- $modal <- Controller

After upgrading to angular-bootstrap 1.2, this error occurred when loading my app:

Unknown provider: $modalProvider <- $modal <- Controller

like image 700
James Gentes Avatar asked Feb 14 '16 18:02

James Gentes


1 Answers

Angular UI Bootstrap renamed the $modal directive to $uibModal in version 0.14.0.

Also note that $modalInstance is now $uibModalInstance.

See the Angular UI Bootstrap documentation for Modal here.

like image 196
James Gentes Avatar answered Oct 21 '22 20:10

James Gentes