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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to