Olá Júlio, o meu aconteceu o mesmo... Tem alguma ideia do que está pegando?
Código do photo.component.html
<img class="img-thumbnail" [src]="url" [alt]="description">
Código do photo.component.ts
import { Component } from '@angular/core';
@Component({
selector: 'ap-photo',
templateUrl: 'photo.component.html'
})
export class PhotoComponent {
description = 'Leão';
url = 'https://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Sultan_the_Barbary_Lion.jpg/440px-Sultan_the_Barbary_Lion.jpg'
}
Código do app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// import { AppRoutingModule } from './app-routing.module';
import { PhotoComponent } from './photo/photo.component';
@NgModule({
declarations: [
AppComponent,
PhotoComponent
],
imports: [
BrowserModule,
// AppRoutingModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }