I'm quite new to angularjs and somehow theres something I can't make a workaround.
Its getting a single value from a json array and then placing it in a scope variable. Lets say just got an array from a php query which looks like this (printed view):
array(
[name] => John Doe,
[age] => 29,
[gender] =>male);
And then it is added through this scope variable:
$scope.profile = response.data;
How can I pick a single a value from that array and then place it separate scope variables?
$scope.name; $scope.age; $scope.gender;
response.data.nameorresponse.data['name']and assign it to$scope.nameJSON.parse(response);and store it in variable