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:
- import
- { Component }
- from
- '@angular/core'