-
Notifications
You must be signed in to change notification settings - Fork 0
/
syntax-test.v2.ts
63 lines (55 loc) · 2.08 KB
/
syntax-test.v2.ts
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
import { customElement } from "aurelia"
@customElement({
name: "au-test",
template: ""
+ "<template bindable='' role='' replaceable part='' replace-part=''>"
+ " <div style='width: 1px; height: 1px;'></div>"
+ " <div style='width: ${ test }px; height: ${ test }px;'></div>"
+ " <div background.style='viewModelVariable' style.bind='styleObject'></div>"
+ " <div style='background-image: url(`https://source.unsplash.com/random/${ w > 0 ? w : 50 }x${ h > 0 ? h : 50 }/?wallpapers`);'></div>"
+ " <div ref='' element.ref='' attribute-name.ref='' view-model.ref='' view.ref='' controller.ref=''></div>"
+ " <div>${ test }</div>"
+ "</template>"
})
export class AuTest {}
@customElement({
name: 'au-test',
template: ''
+ '<template bindable="" role="" replaceable part="" replace-part="">'
+ ' <div style="width: 1px; height: 1px;"></div>'
+ ' <div style="width: ${ test }px; height: ${ test }px;"></div>'
+ ' <div background.style="viewModelVariable" style.bind="styleObject"></div>'
+ ' <div style="background-image: url(`https://source.unsplash.com/random/${ w > 0 ? w : 50 }x${ h > 0 ? h : 50 }/?wallpapers`);"></div>'
+ ' <div ref="" element.ref="" attribute-name.ref="" view-model.ref="" view.ref="" controller.ref=""></div>'
+ ' <div>${ test }</div>'
+ '</template>'
})
export class AuTest {}
@customElement({
name: `au-test`,
template: `<template
bindable=""
role=""
replaceable
part=""
replace-part="">
<div
style="width: 1px; height: 1px;"
style='width: 1px; height: 1px;'
style="width: \${ test }px; height: \${ test }px;"
style='width: \${ test }px; height: \${ test }px;'
style="background-image: url('https://source.unsplash.com/random/\${ w > 0 ? w : '50' }x\${ h > 0 ? h : '50' }/?wallpapers');"
style='background-image: url("https://source.unsplash.com/random/\${ w > 0 ? w : "50" }x\${ h > 0 ? h : "50" }/?wallpapers");'
background.style="viewModelVariable"
style.bind="styleObject"
ref=""
element.ref=""
attribute-name.ref=""
view-model.ref=""
view.ref=""
controller.ref="">
\${ test }
</div>
</template>`
})
export class AuTest {}