sorry for the double post, nighlty work :)
Here's the solution a friend just gave me : when using $compile we can pass
a third argument that gives the controller.
We now have : var tpl = $compile('<item></item>')(scope, null, {container:
iElement.data('$containerController')});
Updated plunker with workin controller
: http://plnkr.co/edit/lhgRXfCdkWefFfxz10Ja?p=preview
Cheers :)
On Monday, February 10, 2014 5:30:15 AM UTC+1, Sander Elias wrote:
>
> Hi Julien,
>
> Had a feeling of deja vu! :
> http://plnkr.co/edit/jxcSYmTctqVcWl0rpM5J?p=preview
>
> 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/groups/opt_out.