Thanks guys,
this also looks like a good solution:
https://github.com/eee-c/angular-bind-polymer

On Thursday, August 28, 2014 3:11:34 AM UTC+2, Justin Fagnani wrote:
>
> Uri, are you using angular_node_bind? That's the only way I know of to 
> establish a two-way binding from Angular to a Polymer element.
>
> The pub package is here: 
> https://pub.dartlang.org/packages/angular_node_bind
>
> And it actually uses the [[ ]] syntax you use above.
>
> Let me know if it works.
>
> Cheers,
>   Justin
>
>
>
>
>
>
> On Wed, Aug 27, 2014 at 5:39 PM, 'Yvonne Yip' via Polymer <
> [email protected] <javascript:>> wrote:
>
>> Hmm, the JS version of this code works. Can a Dart peep chime in?
>>
>>
>> On Wed, Aug 27, 2014 at 4:29 AM, Uri Goldshtein <[email protected] 
>> <javascript:>> wrote:
>>
>>> I'm trying to recreate the functionality of AngularJS's ui-bootstrap 
>>> dropdown with core-dropdown.
>>> But I can't find a way to bind an external variable to the current 
>>> selected item.
>>>
>>> For example (i'm doing the Angular binding with [[ ]] instead of {{ }} 
>>> to show the difference between Polymer ):
>>>
>>> <core-dropdown valueattr="programId" selected="[[currentProgramId]]">
>>>       <core-item ng-repeat="program in programs"
>>>                  ng-click="currentProgramId = program._id"
>>>                  programId="[[program._id]]"
>>>                  label="[[program.name]]"></core-item>
>>> </core-dropdown>
>>>
>>> When I click an item, it chooses the program.
>>> But when I change the current program id outside of the dropdown, the 
>>> dropdown selected item doesn't change...
>>>
>>> Any help will be greatly appreciated!
>>> Thanks
>>>
>>> Follow Polymer on Google+: plus.google.com/107187849809354688692
>>> --- 
>>> You received this message because you are subscribed to the Google 
>>> Groups "Polymer" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to [email protected] <javascript:>.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/polymer-dev/9007c13f-4881-405e-93a7-eab98ebd7795%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/polymer-dev/9007c13f-4881-405e-93a7-eab98ebd7795%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  Follow Polymer on Google+: plus.google.com/107187849809354688692
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Polymer" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/polymer-dev/CAHk1xZK3%2Bz2%3DfYMncx2fs5hfNurnO2MKogtPC4cpFo4SQSHMKg%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/polymer-dev/CAHk1xZK3%2Bz2%3DfYMncx2fs5hfNurnO2MKogtPC4cpFo4SQSHMKg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/df860e47-90b5-49d4-bc7b-308ec9fc4e8b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to