bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

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

Open deryl27 opened this issue 11 years ago • 4 comments

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

Error : carouselCtrl.addSlide is not a function

deryl27 avatar Aug 18 '15 03:08 deryl27

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

wesleycho avatar Aug 18 '15 05:08 wesleycho

@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.

Blackbaud-BobbyEarl avatar Aug 19 '15 22:08 Blackbaud-BobbyEarl

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.

wesleycho avatar Sep 09 '15 09:09 wesleycho

@Blackbaud-BobbyEarl Thank you! Problem solved!

Tao-Cui avatar Sep 20 '15 13:09 Tao-Cui