Updated Syntax
The instructor in this's course used an old way to add (input) syntax, this's way not working in the new version of angular. it's updated
@Component({
selector: 'app-artist-details',
templateUrl: './artist-details.component.html',
inputs: ['artist']
})
- We should add the input like this
export class ArtistDetailsComponent {
@Input('artist') artist: any;
}
you can learn more about input and component in angular docs
Updated Syntax
The instructor in this's course used an old way to add (input) syntax, this's way not working in the new version of angular. it's updated
you can learn more about
inputandcomponentin angular docs