Looking for guidance on accessing the name property of a user object returned by a restful web service. I am able to see the object being returned, but unsure how to access the name property and store it in a variable.
User.get.then(function (payload) {
var usrname = '';
var usrobj = angular.fromJson(payload.data);
});
Could someone provide an example of how to assign the value of the name property to the variable usrname?
Appreciate any help!