var users = []; $http.get('http://puth.com').then( function( response ){ angular.extend( users, response.data ); } );