You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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. }