javascript - error cannot read property count of undeifned -


i have odata controller sending me count of total entities trying read in javascript i.e. angular app. odata.count property visible proper value keep on getting error. please refer attached image.

snapshot of error

when try read

countresponse.odata.count 

i error cannot read property count of undefined.

please guide

the reason have property name dot. code trying access object on countresponse called odata , odata's count.

either change whatever code sets property not use periods or change syntax countresponse["odata.count"].


Comments

Popular posts from this blog

Java 3D LWJGL collision -

methods - python can't use function in submodule -

c# - ErrorThe type or namespace name 'AxWMPLib' could not be found (are you missing a using directive or an assembly reference?) -