ngOnInit() {
this.allusers = [];
this.authService.getallUsers(this.allusers)
.subscribe(
(response) =>console.log(response),
(error) =>console.log(error)
);
console.log(this.users);
}
I am trying to load all the users(first_name,last_name and email) . I am getting the results like given below
"[{"id":"1","first_name":"renuka","last_name":"nayer","email":"[email protected]"},{"id":"2","first_name":"renuka","last_name":"nayer","email":"[email protected]"},{"id":"3","first_name":"renuka","last_name":"nayer","email":"[email protected]"},{"id":"4","first_name":"Rakesh","last_name":"R","email":"[email protected]"},{"id":"5","first_name":"Rakesh","last_name":"R","email":"[email protected]"}]"
Kindly help to get the records