Decorators

There have four types Decorators of Angular.

  1. Class Decorators.

  2. Property Decorators.

  3. Method Decorators.

  4. Parameter Decorators.

Class Decorators.

  • @NgModule.

  • @Component.

Property Decorators

  • @Input.

  • @Output.

  • @HostBinding.

Method Decorators

  • @HostListener.

Parameter Decorators

  • @Inject.

‚Äč