Token suntikan sudut

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  constructor(
    @Inject(MY_TOKEN) private myToken: string
  ) {
    console.log("Injected myToken", myToken);
  }
}
simon caf