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 379B

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