• Overview
@angular/core

Inject

decorator

Parameter decorator on a dependency parameter of a class constructor that specifies a custom provider of the dependency.

  
    @Inject ({})
  
  

token

any

A DI token that maps to the dependency to be injected.

Jump to details