Search Posts

TypeError: Cannot read property ‘1’ of undefined compId

i have code like following

_this.data.opt[compId]

here the compid value is 1. when this value comes one means the javascript error cannot read the property 1 of undefined at compid.

Source: AngularJS

Leave a Reply

Your email address will not be published. Required fields are marked *