What is in Angular 2 Opaque Token and What’s the Point?

update Angular4 In Angular4 OpaqueToken is deprecated and will be replaced by InjectionToken. InjectionToken allows to pass a generic type parameter. export let APP_CONFIG = new InjectionToken<MyConfig>(“app.config”); See also https://blog.thoughtram.io/angular/2016/05/23/opaque-tokens-in-angular-2.html https://angular.io/docs/ts/latest/api/core/index/OpaqueToken-class.html (no longer live; rerouted to archive.org version) original What? What’s an Angular2 token to begin with? What’s an Opaque Token? What is it used … Read more