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

carouselCtrl.addSlide is not a function when using ui.router #4223

Closed
deryl27 opened this issue Aug 18, 2015 · 4 comments
Closed

carouselCtrl.addSlide is not a function when using ui.router #4223

deryl27 opened this issue Aug 18, 2015 · 4 comments

Comments

@deryl27
Copy link

deryl27 commented Aug 18, 2015

I am using ui.bootstrap.carousel with ui.router having nested views.

Error : carouselCtrl.addSlide is not a function

@wesleycho
Copy link
Contributor

Can you reproduce this on Plunker? This is not enough to go by.

@Blackbaud-BobbyEarl
Copy link

@deryl27 Are you using "CarouselController as carouselCtrl"? Using the same controller name as ui.bootstrap causes problems. I was seeing the exact same error, switched the name of my controller, and the problem went away.

@wesleycho
Copy link
Contributor

Should be noted that we are in the process of implementing namespaces for each controller using uibFoo for controller names, which should eliminate this problem by the time we hit 1.0 - this is being tracked by #4373.

If this is not the issue, what is posted here is not enough information to go by - closing under the assumption that the former is the case, feel free to post a reproduction via Plunker if it is not the case and there is more information to allow us to assist.

@Tao-Cui
Copy link

Tao-Cui commented Sep 20, 2015

@Blackbaud-BobbyEarl Thank you! Problem solved!

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

No branches or pull requests

4 participants