I need an array of values to be created from a JSON. I am trying to achieve it using angular.forEach, sample plunk http://next.plnkr.co/edit/eXQ1gqO2DXzQKxFY which seems to not work! Please let me know whats incorrect or if there is any better method to achieve this. For example:
// Sample JSON
$scope.Data = {"Gate": [{"Entry": "One"},{"Entry": "Two"}]};
$scope.results = [];
$scope.results = ["One","Two"];
I need the results array.
Thank You!