O meu dá os seguintes erros no App.Component.html
Property 'url' does not exist on type 'Object'.ngtsc(2339) app.component.ts(5, 12): Error occurs in the template of component AppComponent.
Property 'description' does not exist on type 'Object'.ngtsc(2339) app.component.ts(5, 12): Error occurs in the template of component AppComponent.
app.component.html>>>
<ap-photo *ngFor="let photo of photos" [url]="photo.url" [description]="photo.description">
app.component.ts>>>
import { HttpClient } from '@angular/common/http'; import { Component } from '@angular/core';
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.css'] })
export class AppComponent { title = 'OtherPic';
photos: Object[] = [];
constructor(http: HttpClient) { http .get<Object[]>('http://localhost:3000/flavio/photos') .subscribe( photos =>{ console.log(photos); this.photos = photos }); } }