forked from CIT/Vmeda.Online
		
	MOBILE-3320 DX: Add project snippets for vscode
This commit is contained in:
		
							parent
							
								
									012d211d10
								
							
						
					
					
						commit
						0f86372020
					
				
							
								
								
									
										22
									
								
								.vscode/moodle.code-snippets
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								.vscode/moodle.code-snippets
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@ -0,0 +1,22 @@
 | 
			
		||||
{
 | 
			
		||||
    "[Moodle] Service Singleton": {
 | 
			
		||||
        "scope": "typescript",
 | 
			
		||||
        "prefix": "massingleton",
 | 
			
		||||
        "body": [
 | 
			
		||||
 | 
			
		||||
            "import { Injectable } from '@angular/core';",
 | 
			
		||||
            "import { makeSingleton } from '@singletons';",
 | 
			
		||||
            "",
 | 
			
		||||
            "@Injectable({ providedIn: 'root' })",
 | 
			
		||||
            "export class ${1:${TM_FILENAME_BASE}}Service {",
 | 
			
		||||
            "",
 | 
			
		||||
            "    $0",
 | 
			
		||||
            "",
 | 
			
		||||
            "}",
 | 
			
		||||
            "",
 | 
			
		||||
            "export class ${1:${TM_FILENAME_BASE}} extends makeSingleton(${1:${TM_FILENAME_BASE}}Service) {}",
 | 
			
		||||
            ""
 | 
			
		||||
        ],
 | 
			
		||||
        "description": "[Moodle] Create a Service Singleton"
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user