I need to get object in array for the given index in angular js.
scope.storeList = [{
'id':101,
'name':indhu
},{
'id':102,
'name':selvin
},{
'id':103,
'name':indhu1
}];
In this if i give index value, it should give the object. I tried this below code but could not get:
var list = scope.storeList[2];
Please some one help it.