I can't use an expression with form object.property in certain situations:
<raty score="{{obj.rating}}"></raty>
Or:
<div ng-init="myvar=obj.rating" />
<raty score="{{myvar}}"></raty>
In both cases JS complains: "Error: Syntax Error: Token 'obj.rating' is unexpected, expecting [:] at column 3 of the expression [{{obj.rating}}] starting at [obj.rating}}]. " or "Error: Syntax Error: Token 'myvar' is unexpected, expecting [:] at column 3 of the expression [{{myvar}}] starting at [myvar}}].".
The background story (for what I need this) is in this thread.
I have already tried many things, read a few threads like: Optional expression attribute in AngularJS directive or How to get evaluated attributes inside a custom directive
But it doesn't seem to address this specific problem of calling object.property. I need it this way because I'm iterating through a JSON document.
Any ideas?