//component.ts
What is the difference in putting i
as arrow operator or putting i
within a function.
this.service.getuser().subscribe(i => { this.myuserList = i;});
// As shown below, the below code the data data is not painted in html page
this.service.getUserList().subscribe(function(i : any){ this.myuserList = i;});
// Also putting the html code for reference
//component.html <tr *ngFor = 'let p of myuserList'><td>{{p.username}}</td><td>{{p.address.suite}}</td></tr>