I am new to AngularJS. I know if the response is like { "info" : [{"1"},{"2"}] }
then in the promise
.then(function(data)){
var i= data.info;
}
The above case I succeeded, but I want to catch the response, if the actual response is like { "info-value" : [{"1"},{"2"}] }
the promise will be:
.then(function(data)){
var i= data.info-value; // it is saying undefined
}