Created
          June 4, 2021 16:27 
        
      - 
      
- 
        Save owrrpon/6d61bf37ed676287969b8065fd83cf2a to your computer and use it in GitHub Desktop. 
    storing module state
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | private module_data: { [key:string]: any } = {}; | |
| setModuleData(key: string, value: any){ | |
| this.module_data[key] = value; | |
| } | |
| getModuleData(key: string){ | |
| return this.module_data[key]; | |
| } | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment