Hi Sander,
Many thnx for your extensive feedback!
I just marked myself as attended for the Angular event in Amsterdam.
Hope we can meet!
(by the way, I cannot find a lot of information on the site regarding the
event, is it free? It starts at 18.00 right?)
Jan Willem
Op donderdag 25 september 2014 17:23:19 UTC+2 schreef Sander Elias:
>
> HI Jan Willem,
>
> first of all, I need to instanciate scooch to get a working (scrollable)
>> carousel. I do this by the following code: $('.m-scooch').scooch()
>> inside the document.ready()
>> I think the instanciation does not need to be implemented in de directive
>> of the dropdown though.
>>
> Hmm, I think you need to build an scooch directive first.
>
>
>>
>> Secondly, I use $('.m-item').removeClass('m-active') because of the
>> following:
>> To demonstrate: Please load the fiddle, and go to the third thumbnail
>> (second outlander thumbnail).
>> Now change the dropdown to "english". You see that the m-active class
>> stays active on the second outlander movie.
>>
> That is actually correct, as that *is* the last selected thumbnail. It
> looks like your scooch thingie is setting the m-active class by itself.
> so this is a small interference between your plugin, and the way you let
> angular display it's content! If you do indeed reset the thing
> this will brush this issue under the carpet ;)
>
>
> Thirdly, I made a jQuery prototype extension in de scooch.js, that will
>> allow the carousel to reset, to if I change the filter, the carousel needs
>> to be reset to its beginning position.
>>
> See my previous point.
>
> As I don't know your experience as an angular (or JS) developer, it's hard
> to give you advise about this.
> Depending on your needs it's a few lines of code, to a few hundred lines
> of code. I don't have enough spare
> time available to build a ready to run solution for you.
>
> There are a couple of things that need to be done.
> 1. wrap your scooch thing into a (couple of) directive(s)
> 2. create a drop-down directive.
> 3. build the interaction logic for those 2 (which might be yet another
> directive, or a service/factory)
>
> I hope this clarifies things a bit for you,
>
> With kind regards
> Sander
>
>
--
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/d/optout.