Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Unknown provider: $modalInstanceProvider #1549

Closed
CallumVass opened this issue Jan 9, 2014 · 1 comment
Closed

Unknown provider: $modalInstanceProvider #1549

CallumVass opened this issue Jan 9, 2014 · 1 comment

Comments

@CallumVass
Copy link

I am having an issue whereby $modalInstance is not being injected into the modal controller specified in $modal.open();

I have created a plunker here which I hope demonstrates the problem as I am not sure what I am doing wrong? http://plnkr.co/edit/u8MSSegOnUQgsA36SMhg?p=preview

@pkozlowski-opensource
Copy link
Member

The problem was that you were specifying a controller in 2 places - when opening a modal and inside a template - this is not needed. Remove ng-controller from a template and things will work as expected:
http://plnkr.co/edit/khySg1gJjqz1Qv4g4cS5?p=preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants