"Unresolved Variable" caused by very long expression in AngularJS -


because i'm receiving highly nested object backend, i'm trying use long expression:

<span>{{monitorvalues.monitor.eventcounters[0].propertycounters[0].total}}</span> 

at calling array propertycounters, webstorm shows me hint "unresolved variable" , nothing shown. farest expression works monitorvalues.monitor.eventcounters[0].propertycounters, shows me whole array then. how can make full expression work show values want show?

ok, outsourced expression js file like:

$scope.getvalue = function(eventindex, propindex, index){      var eventcounter = $scope.monitorvalues.monitor.eventcounters[eventindex];     var propcounter = eventcounter.propertycounters[propindex];     var valuecounter = propcounter.total[index];      return valuecounter; } 

now works.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -