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

12345678910111213141516
  1. import { Singleton } from "../../src/Decorator";
  2. import { Initializable } from "../../src/Interfaces";
  3. import { COMPONENT_A_VALUE } from "../CONSTANTS";
  4. @Singleton()
  5. export class ComponentA implements Initializable{
  6. private value: string
  7. getFromThis(): string {
  8. return this.value
  9. }
  10. initialize(): void{
  11. this.value = COMPONENT_A_VALUE
  12. }
  13. }