АФ
Size: a a a
АФ
D
АФ
AI
АА
AY
AI
SS
@NgModule{(
declarations: [ParentComponent],
imports: [ChildModule]
providers: [{provide: TOKEN, useValue: ParentValue}]
})
export class ParentModule{}
@NgModule{(
declarations: [ChildComponent],
providers: [{provide: TOKEN, useValue: ChildValue}]
})
export class ChildModule{}
@Copmonent({
selector: 'app-parent',
template: `<app-child></app-child>`
})
export class ParentComponent{
constructor(@Inject(TOKEN) token: string){}
}
AI
AY
@Output() testEvent = new EventEmitter<Game>();
this.testEvent.emit(game);
SS
AI
AI
AI
SS
AI
SS
AI
RM
AI