class OpaqueToken { constructor(_desc: string) toString() : string }
Creates a token that can be used in a DI Provider.
var t = new OpaqueToken("value"); var injector = Injector.resolveAndCreate([ {provide: t, useValue: "bindingValue"} ]); expect(injector.get(t)).toEqual("bin登录查看完整内容
联系方式: