Class Overview
Class Description
Creates a token that can be used in a DI Provider.
Example (live demo)
Using an OpaqueToken is preferable to using strings as tokens because of possible collisions
caused by multiple providers using the same string as two different tokens.
Using an OpaqueToken is preferable to using an Object as tokens because it provides better
error messages.
Annotations
@Injectable()
exported from @angular/core/index, defined in @angular/core/src/di/opaque_token.ts