Hello there!!!
I am trying to create a carousel directive. The signature looks something
like this:
[For different Multiple Views]
<my-carousel>
<my-carousel-item> <p> Item 1 </p> </my-carousel-item>
<my-carousel-item> <p> Item 2 </p> </my-carousel-item>
<my-carousel-item> <p> Item 3 </p> </my-carousel-item>
</my-carousel>
But I also want use to have the liberty writing this way:
[For single Repeated Views]
<my-carousel>
<my-carousel-item ng-repeat="item in items"> <p> Item {{ item }} </p>
</my-carousel-item>
</my-carousel>
I have created a sample plunker representing this
situation:
http://stackoverflow.com/questions/32862051/angularjs-how-to-refer-transcluded-element-in-the-link-function
Please have a look.
Regards,
Anup Vasudeva
--
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.