It's driving me crazy. The code is working fine, but I keep getting this error in the console. The line of code is part of an accordion menu created using Angular and UI-Router.
<li ng-repeat="item in group.items"><a ng-click="setActiveView(item['item-title'])" ui-sref="dashboard.showname.{{item['item-title']}}">{{item['item-title']}}</a></li>
The error message displayed is:
Uncaught Error: Syntax error, unrecognized expression: a[ng-click='setActiveView(item['item-title'])']
I'm not sure if this is a bug or if I'm overlooking something. Can anyone help?