thank you very much for this example Pete, i'm trying to figure out how to 
do nested transclusion so this is helping me (though not quite there yet)


On Tuesday, December 4, 2012 4:46:00 PM UTC+7, Pete Bacon Darwin wrote:
>
> OK, here is a tidied up version that works.
> http://plnkr.co/edit/B2tqAeD5IPTktGG0inNT?p=preview
>
>
> On 4 December 2012 09:21, Ksenia Mukhortova 
> <[email protected]<javascript:>
> > wrote:
>
>> Thanks for the answer, Peter! But in your code the selected value from 
>> autocomplete still doesn't seem to change the value in controller, it keeps 
>> showing 'initial' in both instances.
>>
>> As I understood from Miško's talk 
>> http://www.youtube.com/watch?feature=player_embedded&v=WqmeI5fZchotransclusion
>>  results in creating sibling scope for transcluded code (in my 
>> case autocomplte directive) so it should have access to the controller 
>> rather than inherit emptyverifier directive scope. Where is my 
>> understanding wrong?
>>
>> Ksenia
>>
>>
>> On Tuesday, December 4, 2012 12:58:45 PM UTC+4, Peter Bacon Darwin wrote:
>>
>>> The problem is that your emptyverifier directive is introducing an 
>>> isolated scope and mapping selection.fullDstn in the outer scope to just 
>>> selection on the isolated scope.  So the autocomplete directive is trying 
>>> to write to fields on a string!
>>>
>>> http://plnkr.co/edit/B2tqAeD5IPTktGG0inNT?p=preview
>>>
>>>
>>> On 3 December 2012 20:12, <[email protected]> wrote:
>>>
>>>> Hi all, 
>>>>
>>>> I've got a problems nesting two directives.
>>>> This code with one directive works as expected: http://plnkr.co/
>>>> edit/nq1DD0
>>>>
>>>> But when I wrap this directive into another one with transclusion the 
>>>> access to the controller scope breaks: http://plnkr.co/edit/
>>>> zaWDQxqeFe9aYIBPnpJ3
>>>>
>>>> What's wrong with it?
>>>>
>>>> Thanks in advance for the help!
>>>>
>>>> Ksenia
>>>>
>>>>  -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "AngularJS" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to angular+u...@
>>>> googlegroups.com.
>>>>
>>>> Visit this group at http://groups.google.com/group/angular?hl=en-US.
>>>>  
>>>>  
>>>>
>>>
>>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "AngularJS" group.
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> Visit this group at http://groups.google.com/group/angular?hl=en-US.
>>  
>>  
>>
>
>

-- 
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.

Reply via email to