-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtssnippets.json
30 lines (30 loc) · 905 Bytes
/
tssnippets.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
"Rd_Component": {
"prefix": "rd-component",
"description": "Creates standard Angular2+ component stub",
"body": [
"import { Component } from '@angular/core';",
" ",
"@Component({",
" selector: 'rd-${1:name}',",
" template: require('./${1:name}.component.html')",
"})",
"export class ${2:Name}Component {",
" ",
"}"
]
},
"Rd_Module": {
"prefix": "rd-module",
"description": "Creates standard Angular2+ module stub",
"body": [
"import { NgModule } from '@angular/core';",
" ",
"@NgModule({",
" declarations: [${1:Name}Component],",
" entryComponents: [${1:Name}Component],",
"})",
"export class ${1:Name}Module { }"
]
}
}