-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathhtml-snippets.code-snippets
66 lines (66 loc) · 1.7 KB
/
html-snippets.code-snippets
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
{
"Angular Dart Router Link": {
"prefix": "ad-router-link",
"description": "Router link",
"body": [
"<a [routerLink]=\"${1:path}\">${2:name}</a>$0"
]
},
"Angular Dart Router Attribute": {
"prefix": "ad-router-attribute",
"description": "Router link",
"body": [
"[routerLink]=\"${1:path}\"$0"
]
},
"Angular Dart Router Active Link": {
"prefix": "ad-router-linkActive",
"description": "Router active link",
"body": [
"<a [routerLink]=\"${1:path}\" routerLinkActive=\"active\">${2:name}</a>$0"
]
},
"Angular Dart Router Outlet": {
"prefix": "ad-router-outlet",
"description": "Router outlet element",
"body": [
"<router-outlet [routes]=\"${1:routes}\"></router-outlet>",
"$0"
]
},
"Angular Dart If Directive": {
"prefix": "ad-if",
"description": "If directive: *ngIf=\"expression\"",
"body": [
"*ngIf=\"${1:expression}\"$0"
]
},
"Angular Dart For-loop Directive": {
"prefix": "ad-for",
"description": "For-loop directive",
"body": [
"*ngFor=\"let ${1:item} of ${2:items}\"$0"
]
},
"Angular Dart For-loop Directive with li element": {
"prefix": "ad-for-li",
"description": "For-loop directive with li element",
"body": [
"<li *ngFor=\"let ${1:item} of ${2:items}\">$0</li>"
]
},
"Angular Dart For-loop Directive with index": {
"prefix": "ad-for-index",
"description": "For-loop directive with index",
"body": [
"*ngFor=\"let ${1:item} of ${2:items}; let i=index\"$0"
]
},
"Angular Dart Click Event": {
"prefix": "ad-click",
"description": "Click event",
"body": [
"(click)=\"${1:expression}\"$0"
]
},
}