Ah, I'm afraid you've lost me with this: "While doing so, make sure you use the isolate scope for the directive, the one that gets used to link the transcluded content to." Could you explain further?
I thought I should reproduce the directive I already tried in a plunkr, and I found out something weird; you can do it very easily in Angular 1.0.8 but it no longer works in 1.2.16. Check it out: http://plnkr.co/edit/7G1Sj11OhrhBXIHkMDyv?p=preview As you can see, it works fine with 1.0.8. The inner controller scope is bound to the inner view and does not have the inherited attributes. But go into index.html and change the angular version to 1.2.16 and it stops working. Now the view is bound to the *outer* scope for some reason! Very strange... On Wednesday, 30 April 2014 15:15:41 UTC+1, Sander Elias wrote: > > Matthew, > > Create a directive with an isolate scope, and transclude the contents. > While doing so, make sure you use the isolate scope for the directive, the > one that gets used to link the transcluded content to. > Need more? > > 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.
