I'd stuck at a point while working with ng directives. I'm passing two parameters to mouseoverOnStep function, one is object value itself and second one is the selector of the element. I've the following HTML code
<li ng-mouseover="mouseoverOnStep(Color.color_value, '.mask-second-{{Color.id}}');" ng-repeat="Color in select.Color"> </li>
What I am getting the output when I inspected my element. It is
<li ng-repeat="Color in select.Color" ng-mouseover="mouseoverOnStep(Color.color_value, '.mask-second-');" class="ng-scope"> </li>
With
Error: [$parse:syntax]
Why I am not getting the value of {{Color.id}} in DOM ?
I am expecting something like.
ng-mouseover="mouseoverOnStep(Color.color_value, '.mask-second-12');"
ng-mouseover="mouseoverOnStep(Color.color_value, '.mask-second-13');"
Any help would be appreciated.
Color.idand in the function concatenate it with'.mask-second-'