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

James Gentes picture James Gentes · Feb 14, 2016 · Viewed 13.9k times · Source

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

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

Answer

James Gentes picture James Gentes · Feb 14, 2016

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.