Carousel not working with angularjs 1.2.7 + bootstrap 3.0.3
I tried to use carousel control, but it's only work on first slide, and then pause forever. The control buttons (prev, and next) didn't work either.
Could you please provide a demo in a Plunk, so we can verify if this is a new bug. At this point Angular 1.2.x isn't supported yet, although I guess it will released in a few days.
@dinhvan5481 This seems to work fine here: http://plnkr.co/edit/SEJLWKwlODUetp6q23rG?p=preview. As @Gamemaniak said, if you cannot share a minimal reproduce scenario we cannot help.
Closing, but feel free to reopen when you have something to show.
Actually, there is an identified issue when you want to use carousel when ngAnimate is loaded as dependance. See plunker the same as yours with the inclusion of angular-animate : http://plnkr.co/edit/gwoxr1wj9h7YgpkLS11P?p=preview Carousel stops at the second slide.
See https://github.com/angular-ui/bootstrap/issues/1350 to get a workaround.
Thank @couclock very much. I tried to re-create the issue on plunker, but couldn't.
Thanks guys. Commenting out ngAnimate did it for me! I'm not sure what I had ngAnimate in for now, but this seems like a big issue. Thanks!
Yes,Commenting out ngAnimate did it for me too!Thanks!
Still not working with jQuery 2.1.0 + angular 1.2.16 + ngAniamte 1.2.16 + bootstrap 3.1.1 + angular-ui 0.10.0 ?
Google chrome 34.0.1847.116
http://plnkr.co/edit/EzeZ6KKPfHe0draKUItn?p=preview
By the way
# coffeescript
$timeout -> $animate.enabled off, angular.element(".carousel")
// js
$timeout(function() {
return $animate.enabled(false, angular.element(".carousel"));
});
this trick working for me.
@Pleasurazy it is not working for me but ur plunker seems to be working im using ui-bootstrap-tpls-0.10.0, Bootstrap css v3.0.1 AngularJS v1.2.16
Very interesting issue. And this issue makes me think of a WinForms UI Carousel control I got to know recently. From the carousel control tutorial in C#, I can tell they are the similar thing but quite different in implementation. Looks like a novice in JS need to dig deeper.
Confirming the issue. Angular v1.2.16 + ngAnimate. Will this get fixed?
This issue is actually also referenced here : #1350
Someone has given a workaround but it seems it's not fixed yet.
We are on November and it hasn't been fixed yet. Just to remind you ngAnimate is the problem that causes the carousel to stop working.
Wow thanks for this thread, I was so confused as to why my slideshows randomly broke!
Has this still not been resolved? Removing ngAnimate isn't an option for me.
any one got this problem solved :-1: ?
I am still experiencing this issue as well. Thankfully @Pleasurazy's workaround fixed the issue for me.
Yeah i used the directive workaround. Kinda lame but gets the job done. On Feb 4, 2015 11:46 AM, "Trevor Brown" [email protected] wrote:
I am still experiencing this issue as well. Thankfully @Pleasurazy https://github.com/Pleasurazy's workaround fixed the issue for me.
— Reply to this email directly or view it on GitHub https://github.com/angular-ui/bootstrap/issues/1565#issuecomment-72901992 .
I actually moved mine to the config block:
app.config(
['$animateProvider',
function ($animateProvider) {
$animateProvider.classNameFilter(/carousel/);
}]);
This means ngAnimate is disabled for all elements in the application with the carousel class.
@Stratus3D Thanks! That worked for me.
@Stratus3D Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! That worked for me too.