MOBILE-3609 DX: Add vscode snippets

main
Noel De Martin 2021-01-19 16:29:20 +01:00
parent 4b45af2e0c
commit 07a389be6b
1 changed files with 38 additions and 0 deletions

View File

@ -1,4 +1,42 @@
{
"[Moodle] Component class": {
"scope": "typescript",
"prefix": "macomponent",
"body": [
"import { Component } from '@angular/core';",
"",
"@Component({",
" selector: '$2${TM_FILENAME_BASE}',",
" templateUrl: '${TM_FILENAME_BASE}.html',",
"})",
"export class ${1:${TM_FILENAME_BASE}}Component {",
"",
" $0",
"",
"}",
""
],
"description": "[Moodle] Create a Component class"
},
"[Moodle] Page class": {
"scope": "typescript",
"prefix": "mapage",
"body": [
"import { Component } from '@angular/core';",
"",
"@Component({",
" selector: 'page-$2${TM_FILENAME_BASE}',",
" templateUrl: '${TM_FILENAME_BASE}.html',",
"})",
"export class ${1:${TM_FILENAME_BASE}}Page {",
"",
" $0",
"",
"}",
""
],
"description": "[Moodle] Create a Page class"
},
"[Moodle] Service Singleton": {
"scope": "typescript",
"prefix": "massingleton",