S
Size: a a a
S
AP
🧤K
🧤K
AP
🧤K
🧤K
AP
AP
S
inteface AbstractTemplateGenerator<T> {... }
const TEMPLATE_GENERATOR = new InjectionToken<AbstractTemplateGenerator<any>();
@Component({
...,
providers: [ { provide: TEMPLATE_GENERATOR, useExisting: MyComponent }],
})
class MyComponent<T> implements AbstractTemplateGenerator<T> { ... }
AP
inteface AbstractTemplateGenerator<T> {... }
const TEMPLATE_GENERATOR = new InjectionToken<AbstractTemplateGenerator<any>();
@Component({
...,
providers: [ { provide: TEMPLATE_GENERATOR, useExisting: MyComponent }],
})
class MyComponent<T> implements AbstractTemplateGenerator<T> { ... }
S
S
AP
S
E
AP
G
G
Cannot read property 'length' of undefined thrown
КВ