I have a $scope
variable scopeVar
which contains a JSON Object. The JSON object has some complicated key names such as "onStatus[1]"
.
Is it possible to resolve such key names inside the view template so that I can use them like {{scopeVar.onStatus[1]}}
or ng-bind="scopeVar.onStatus[1]"
?.
PS- I assume that using JSON keys in such a fashion is possible after reading this answer.However I am still skeptical regarding using symbols like '[' etc in key names as they may also be used to represent array elements.