Jake, check angularui: http://angular-ui.github.io/bootstrap/#/carousel
Ricardson Albuquerque On Fri, Feb 28, 2014 at 2:23 PM, Jake K. <[email protected]> wrote: > Hello, Elias > > This email is regarding the example at > http://plnkr.co/edit/IQSvr5L5IMRRzfrXVYSR?p=preview ( ng-repeat ). > > Thanks for the plunker. Actually I'm afraid I gave you a bad example of > what I wanted. > > I wanted to extract the element itself ( dom ) that's being generated by > ng-repeat, not just the length. > > I'll explain with more details what I want: > > I want to be able to create a 'carousel' with the elements generated by > ng-repeat. A good example can be found here http://sorgalla.com/jcarousel/, > but I want to do it the 'angular way', with css transitions. > > However I have to manipulate the css properties ( left ) of the elements > generated by ng-repeat, but I am not sure how to access them. I tried using > ng-animate, which works great only for 1 direction ( I'm not sure how to > use ng-animate for both left and right ) > > I'd appreciate if you can provide me with some guidelines on how to create > a carousel the angular way. > > Thanks > > > > > > > > > 2014-02-25 1:12 GMT-08:00 Sander Elias <[email protected]>: > >> Hi Jake, >> >> Found your question :) >> >> element.find() only looks for elements, if you really want/need to do it >> this way, include jQuery. >> However, I think this the backward way of doing this! >> Let me explain a bit what I mean. I'll make a step wise description. >> >> 1. you have an array in your code. >> 2. you use ng-repeat to render this array into your view >> 3. you create a directive for your view >> 4. in your directive you are traversing the dom to find how many >> times you repeated? >> >> To me, it looks like a better idea to use ```$scope.myArray.length``` , >> or am I missing something. >> have a look at this: http://plnkr.co/edit/IQSvr5L5IMRRzfrXVYSR?p=preview >> I just used the scope directly in your directive, there are >> better/nicer/cleaner way's to solve this. but it does get the point across? >> >> Regards >> Sander >> >> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "AngularJS" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/angular/ZzYUvojnEBE/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/angular. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > JAKE KWON +1 (604) 655 3109 > email: [email protected] > > -- > You received this message because you are subscribed to the Google Groups > "AngularJS" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/angular. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/groups/opt_out.
