-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.component.html
More file actions
43 lines (40 loc) · 1.22 KB
/
app.component.html
File metadata and controls
43 lines (40 loc) · 1.22 KB
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
<div class="app">
<h1>Elena + Angular</h1>
<p>Demonstrating Elena web components in Angular</p>
<section>
<h2>Variants</h2>
<elena-stack direction="row">
<elena-button variant="default" text="Default"></elena-button>
<elena-button variant="primary" text="Primary"></elena-button>
<elena-button variant="danger" text="Danger"></elena-button>
</elena-stack>
</section>
<section>
<h2>Interactive: Counter</h2>
<p>Count: {{ count() }}</p>
<elena-stack direction="row">
<elena-button
variant="primary"
(click)="count.set(count() + 1)"
text="Increment"
></elena-button>
<elena-button variant="danger" (click)="count.set(0)" text="Reset"></elena-button>
</elena-stack>
</section>
<section>
<h2>Dynamic Variant</h2>
<elena-stack direction="column">
<elena-button
[attr.variant]="variant()"
(click)="cycleVariant()"
[text]="'Click to cycle variant (current: ' + variant() + ')'"
></elena-button>
<elena-button
[attr.variant]="variant()"
(click)="cycleVariant()"
[text]="variant()"
></elena-button>
<p>Current: {{ variant() }}</p>
</elena-stack>
</section>
</div>