Here I would like to clearly explain my problem.
$http.get('arealist.json').success(function(response){
angular.forEach(response, function(data){
$scope.arealist = data.area_name;
console.log($scope.arealist);
});
});
Using the code above, I get the scope name from isalist.json. and it looks like the image below on the console.

but I need to store the data above in an array and it looks below
$scope.arealist = [
"Avadi",
"Poonamallee",
"Padi",
"Ambattur Industrial Estat",
"Annanagar",
"Arumbakkam",
"Kodambakkam",
"Nandanam"
]
How can i do this?
source
share