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

ComponentA.ts 300B

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