31
31
},
32
32
"ngForm" : {
33
33
"prefix" : " a-form" ,
34
- "body" : [
35
- " <form (ngSubmit)=\" onSubmit()\" #${1:form}=\" ngForm\" >" ,
36
- " </form>"
37
- ],
34
+ "body" : [" <form (ngSubmit)=\" onSubmit()\" #${1:form}=\" ngForm\" >" , " </form>" ],
38
35
"description" : " Form with ngSubmit and form attributes"
39
36
},
40
37
"ngFormArrayName" : {
41
38
"prefix" : " a-formArrayName" ,
42
- "body" : [
43
- " formArrayName=\" ${1:control}\" "
44
- ],
39
+ "body" : [" formArrayName=\" ${1:control}\" " ],
45
40
"description" : " Angular formArrayName"
46
41
},
47
42
"ngFormControlName" : {
48
43
"prefix" : " a-formControlName" ,
49
- "body" : [
50
- " formControlName=\" ${1:control}\" "
51
- ],
44
+ "body" : [" formControlName=\" ${1:control}\" " ],
52
45
"description" : " Angular formControlName"
53
46
},
54
47
"ngFormGroup" : {
55
48
"prefix" : " a-formGroup" ,
56
- "body" : [
57
- " [formGroup]=\" ${1:form}\" "
58
- ],
49
+ "body" : [" [formGroup]=\" ${1:form}\" " ],
59
50
"description" : " Angular formGroup"
60
51
},
61
52
"ngFormGroupName" : {
62
53
"prefix" : " a-formGroupName" ,
63
- "body" : [
64
- " [formGroupName]=\" ${1:name}\" "
65
- ],
54
+ "body" : [" [formGroupName]=\" ${1:name}\" " ],
66
55
"description" : " Angular formGroupName"
67
56
},
68
57
"ngFormSubmit" : {
69
58
"prefix" : " a-form-submit" ,
70
- "body" : [
71
- " <button type=\" submit\" [disabled]=\" !${1:form}.form.valid\" >" ,
72
- " \t Save" ,
73
- " </button>"
74
- ],
59
+ "body" : [" <button type=\" submit\" [disabled]=\" !${1:form}.form.valid\" >" , " \t Save" , " </button>" ],
75
60
"description" : " Angular form submit"
76
61
},
77
62
"ngIf" : {
91
76
},
92
77
"ngRouterLink" : {
93
78
"prefix" : " a-routerLink" ,
94
- "body" : [
95
- " [routerLink]=\" ['/${1:routePath}']\" routerLinkActive=\" ${2:router-link-active}\" $0"
96
- ],
79
+ "body" : [" [routerLink]=\" ['/${1:routePath}']\" routerLinkActive=\" ${2:router-link-active}\" $0" ],
97
80
"description" : " Angular routerLink"
98
81
},
99
82
"ngRouterLinkWithParameter" : {
137
120
"prefix" : " a-preja" ,
138
121
"body" : [" <pre>{{${1:model} | async | json}}</pre>$0" ],
139
122
"description" : " Angular pre debug | async | json"
123
+ },
124
+ "ng-container" : {
125
+ "prefix" : " a-ng-container" ,
126
+ "body" : [" <ng-container $0></ng-container>" ],
127
+ "description" : " Angular ng-container"
128
+ },
129
+ "ng-template" : {
130
+ "prefix" : " a-ng-template" ,
131
+ "body" : [" <ng-template [ngTemplateOutlet]=\" ${1:outlet}\" [ngOutletContext]=\" ${2:context}\" ></ng-template>" ],
132
+ "description" : " Angular ng-template"
133
+ },
134
+ "ng-content" : {
135
+ "prefix" : " a-ng-content" ,
136
+ "body" : [" <ng-content select=\" ${0:selector}\" ></ng-content>" ],
137
+ "description" : " Angular ng-content"
140
138
}
141
- }
139
+ }
0 commit comments