this.route.data.subscribe((data:Data)=>{
this.servers = data['server'];
console.log(this.servers);
});
The above code outputs like this to console
{id: 1, name: "Productionserver", status: "online"}
How to display this in view.
I tried like this but its not working
<div *ngFor="let server of servers">
{{server.id}}{{server.name}}{{server.status}}
</div>