I have created simple json and trying to print using *ngFor but its not printing anything. Please help me to know missing part. Below is the code of typescript file as well as html file
Typescript code
export class HomePage {
public users = [
{ name: ‘Jilles’, age: 21 },
{ name: ‘Todd’, age: 24 },
{ name: ‘Lisa’, age: 18 }
];
constructor(private navController: NavController) {
}
HTML file code
<div *ngFor='let user of users'>
{{ user.name }}
</div>