Hi
I was able to do it easily with
<paper-item ng-repeat="f in countries" label="{{f}}" ></paper-item>
thanks!
On Tuesday, October 21, 2014 7:58:04 AM UTC-3, [email protected] wrote:
>
> Its perfect.
>
> One more question. If I want to fill a paper-dropdown-menu like this
>
> <paper-dropdown-menu valueattr="label">
> <paper-item angupoly="{label:'country}"
> ng-repeat="country in countries"></paper-item>
> </paper-dropdown-menu>
>
> Can I do it ? or how can I fill paper combo boxes with angupoly ?
>
> thanks!
>
> On Thursday, October 16, 2014 4:37:31 PM UTC-3, Eric Bidelman wrote:
>>
>> Angular doesn't understand 2-way bindings to attributes. You need
>> something like https://github.com/matjaz/angu-poly to get this working.
>>
>> On Thu, Oct 16, 2014 at 12:30 PM, <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I have a code like this
>>>
>>>
>>> <form ng-controller="MyController">
>>> ...
>>> <paper-radio-group selected="opt1" id="options">
>>> <paper-radio-button name="opt1"
>>> label="A"
>>> ng-model="myValue"></paper-radio-button>
>>> <paper-radio-button name="opt2"
>>> label="B"
>>> ng-model="myValue"></paper-radio-button>
>>> </paper-radio-group>
>>> <paper-button ng-click="saveValues()">Continue</paper-button>
>>> ...
>>> </form>
>>>
>>>
>>>
>>> I want to make the binding between the controller values and the polymer
>>> elements. But I was not able to make it work. Using the previous code when
>>> I click on the paper-button the var myValue never has the paper-radio value
>>> selected. I try
>>>
>>> Enter cod<paper-radio-group selected="{{myValue}}" id="options">e here
>>> ...
>>>
>>> But I does not work
>>>
>>> My Angularjs controller es a very basic one
>>>
>>> angular.module('myApp')
>>> .controller('MyController', function ($scope) {
>>>
>>> $scope. myValue ='op2';
>>>
>>> $scope. saveValues = function() {
>>> console.log($scope. myValue);
>>> };
>>>
>>> });
>>>
>>>
>>> Any idea what I'm doing wrong ?
>>>
>>> Best
>>> Ignacio
>>>
>>>
>>>
>>> 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/b5aa6b78-1ec7-4337-9c61-e3b5e917e932%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/polymer-dev/b5aa6b78-1ec7-4337-9c61-e3b5e917e932%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].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/1d7b8148-8839-4dc3-827a-ae7664f899ca%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.