bootstrap icon indicating copy to clipboard operation
bootstrap copied to clipboard

Carousel not working with angularjs 1.2.7 + bootstrap 3.0.3

Open vquach718 opened this issue 12 years ago • 28 comments

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.

vquach718 avatar Jan 12 '14 06:01 vquach718

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.

mvhecke avatar Jan 12 '14 11:01 mvhecke

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

bekos avatar Jan 12 '14 18:01 bekos

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.

couclock avatar Jan 16 '14 14:01 couclock

Thank @couclock very much. I tried to re-create the issue on plunker, but couldn't.

vquach718 avatar Jan 16 '14 16:01 vquach718

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!

nickjuntilla avatar Mar 27 '14 01:03 nickjuntilla

Yes,Commenting out ngAnimate did it for me too!Thanks!

smstone2006 avatar Apr 05 '14 09:04 smstone2006

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.

aqzhyi avatar Apr 22 '14 09:04 aqzhyi

@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

atul221282 avatar Apr 25 '14 03:04 atul221282

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.

anthonyzz avatar May 19 '14 04:05 anthonyzz

Confirming the issue. Angular v1.2.16 + ngAnimate. Will this get fixed?

metzger84 avatar Jun 05 '14 11:06 metzger84

This issue is actually also referenced here : #1350

Someone has given a workaround but it seems it's not fixed yet.

mvidailhet avatar Jun 13 '14 16:06 mvidailhet

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.

ncoma avatar Nov 10 '14 15:11 ncoma

Wow thanks for this thread, I was so confused as to why my slideshows randomly broke!

blrzzzt avatar Dec 06 '14 05:12 blrzzzt

Has this still not been resolved? Removing ngAnimate isn't an option for me.

Natas0007 avatar Dec 24 '14 05:12 Natas0007

any one got this problem solved :-1: ?

rammere avatar Dec 26 '14 09:12 rammere

I am still experiencing this issue as well. Thankfully @Pleasurazy's workaround fixed the issue for me.

Stratus3D avatar Feb 04 '15 17:02 Stratus3D

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 .

Natas0007 avatar Feb 04 '15 19:02 Natas0007

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 avatar Feb 05 '15 21:02 Stratus3D

@Stratus3D Thanks! That worked for me.

sonicparke avatar Mar 03 '15 20:03 sonicparke

@Stratus3D Thanks! Thanks! Thanks! Thanks! Thanks! Thanks! That worked for me too.

dinesh36 avatar Mar 16 '15 08:03 dinesh36