This answer helped me understand how to bound a variable via ng-click: How can you pass a bound variable to an ng-click function?
However, what if the variable that needs to be passed is a nested variable?
For example:
The nested variable: {{item['id']['attributes']['im:id']}}
How would this be called inside of ng-click?
<a ng-click="open('item['id']['attributes']['im:id']')">
Definitely does not work because of the multliple use of the single quote.
Thanks!
__ Edit ___
Attached is the JSFiddle of what I am trying to achieve: http://jsfiddle.net/RUnaE/4/
Basically in $scope.test, the value that I am trying to pass within ng-click to the contoller is {{ item['id']['attributes']['im:id']}}