Put in order · Angular course · Module 1: Introduction to Angular

Importing the Component decorator

Arrange in one line the correct import of the Component decorator from the Angular library:

Items to put in order

  • { Component }
  • from
  • import
  • '@angular/core'
Show the answer

Correct order:

  1. import
  2. { Component }
  3. from
  4. '@angular/core'