Hi All,
I am new to AngularJS and exploring it.
I have a below scenario. Could some one please suggest me on this
$scope.getDataFromServer = function() {
$http({
method : 'POST',
url : 'angularAction.action',
params: formData
}).success(function(data, status, headers, config) {
$scope.person = data;
this person obj have fields
like currentField, states, districts etc
var temp= $scope.person.currentField; // I
am able to pull the value, it is returning the value as "*states*"
My question is i need to use the "*temp " *as
variable to pull the *states *data from *$scope.person*
something like $scope.person.temp
}
Thanks In Advance
Naveen
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.