I've removed the ng-repeat It's weird how there are 2 versions of the template in there, i thought the initial content would be replaced by the template:"xxx" content?, then trancluded in
On 22 May 2014 13:12, Tony pee <[email protected]> wrote: > > > Sander - im not sure what your hinting at? it seems weird where the > appends are happening, but still im not sure whats going on. The tcFn can > append data, sure. but have i done something wrong in my setup for > transclusion? > > Michael - the ng-repeat isnt the thing im worried about. Im trying to use > transclude to give me the template, by that means the {{data}} and > {{selected}} tags should work, but they dont. I could definitely do this > the normal way, im just trying to understand transclude. > > > On 22 May 2014 03:36, Michael Dausmann <[email protected]> wrote: > >> Hi Tony >> >> Couple of observations. Firstly why wouldn't you just use ng-repeat, it >> appears to do what you want (repeat a section of angular markup for each >> element of a list of items). Secondly, if you want to replicate the >> ng-repeat directive, you will likely need to use the compile function, not >> just the link function as you have attempted. >> >> Michael >> >> On Thursday, May 22, 2014 5:06:19 AM UTC+10, tonypee wrote: >>> >>> using templateUrl i can add the content of my directive, but if i wanted >>> (hypothetically) to use transclude to add the markup, what am i doing wrong >>> here? >>> >>> http://plnkr.co/edit/0YqW4av9Vyou8wV4YxN7?p=preview >>> >>> >>> >>> -- >>> Tony Polinelli >>> >>> -- >> 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. >> > > > > -- > Tony Polinelli > > -- Tony Polinelli -- 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.
