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.

TestComponent.ts 235B

12345678910111213141516
  1. import { Singleton } from "../../src/Decorator";
  2. @Singleton()
  3. export class TestComponent{
  4. private data: string[] = []
  5. pushData(str: string){
  6. this.data.push(str)
  7. }
  8. getData(){
  9. return this.data
  10. }
  11. }