Put in order · Angular course · Module 2: Components

@Component Decorator Properties

Arrange the lines of the component definition from top to bottom (the order of properties inside the decorator does not matter):

Items to put in order

  • export class SamuraiComponent {}
  • @Component({
  • })
  • selector: 'app-samurai',
  • templateUrl: './samurai.component.html',
Show the answer

Correct order:

  1. @Component({
  2. selector: 'app-samurai',
  3. templateUrl: './samurai.component.html',
  4. })
  5. export class SamuraiComponent {}