how to get array of object instead of object in angular?
问题 can you please tell me how to get array of objects instead of object in angular 2.I am hitting a service and getting a object as a response . getUsers(): Observable<HttpResponse<UserModel>> { return this.http.get<HttpResponse<UserModel>>(this.configUrl).pipe( catchError(this.handleError) ); } getting response this { "page": 1, "per_page": 3, "total": 12, "total_pages": 4, "data": [ { "id": 1, "first_name": "George", "last_name": "Bluth", "avatar": "https://s3.amazonaws.com/uifaces/faces