I'm binding my radio buttons to my model like so:
<input type="radio" ng-model="formData.style" ng-value="{{style}}">
Where style being a complex object with multiple properties. This is done within a ng-repeat so I have multiple of those. A style could be like this:
{"name":"kran", "size":"2"}
and so on.. I want to bind the complete object to the model so I can later save it for state and retrive it to keep working with it. But when I update the model with a saved "state" the UI does not update to show which radio button is selected. I believe this has to do with binding to a complex object not a simple value, but I'm not really sure.
the style object comes from another array like this:
<div ng-repeat="style in data.styles">
How can I solve this issue?