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.

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