Put in order · Angular course · Module 2: Components

Implementing a Hook Interface

Arrange the single-line tokens of a class declaration implementing the OnInit hook:

Items to put in order

  • DojoComponent
  • implements
  • export class
  • OnInit {
Show the answer

Correct order:

  1. export class
  2. DojoComponent
  3. implements
  4. OnInit {