您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

ComponentC.ts 458B

12345678910111213141516
  1. import { Inject, Singleton } from "../../src/Decorator"
  2. import { Initializable } from "../../src/Interfaces"
  3. import { COMPONENT_C_VALUE } from "../CONSTANTS"
  4. import { TestComponent } from "./TestComponent"
  5. @Singleton({
  6. initializationPriority: 1
  7. })
  8. export class ComponentC implements Initializable{
  9. @Inject(TestComponent)
  10. private testComponent: TestComponent
  11. initialize(): void{
  12. this.testComponent.pushData(COMPONENT_C_VALUE)
  13. }
  14. }