Skip to content

some syntax updated #7

@albehofy

Description

@albehofy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions