File tree 3 files changed +8
-12
lines changed
examples/integrations-playground/src
3 files changed +8
-12
lines changed Original file line number Diff line number Diff line change 1
1
import { LitElement , html } from 'lit' ;
2
2
3
- export const tagName = 'calc-add' ;
4
-
5
- class CalcAdd extends LitElement {
3
+ export class CalcAdd extends LitElement {
6
4
static get properties ( ) {
7
5
return {
8
6
num : {
@@ -16,4 +14,4 @@ class CalcAdd extends LitElement {
16
14
}
17
15
}
18
16
19
- customElements . define ( tagName , CalcAdd ) ;
17
+ customElements . define ( 'calc-add' , CalcAdd ) ;
Original file line number Diff line number Diff line change 1
1
import { LitElement , html } from 'lit' ;
2
2
3
- export const tagName = 'my-counter' ;
4
-
5
- class Counter extends LitElement {
3
+ export class MyCounter extends LitElement {
6
4
static get properties ( ) {
7
5
return {
8
6
count : {
@@ -31,4 +29,4 @@ class Counter extends LitElement {
31
29
}
32
30
}
33
31
34
- customElements . define ( tagName , Counter ) ;
32
+ customElements . define ( 'my-counter' , MyCounter ) ;
Original file line number Diff line number Diff line change 2
2
import Lorem from ' ../components/Lorem.astro' ;
3
3
import Link from ' ../components/Link.jsx' ;
4
4
import SolidCounter from ' ../components/SolidCounter.jsx' ;
5
- import ' ../components/Test .js' ;
6
- import ' ../components/Counter .js' ;
5
+ import { CalcAdd } from ' ../components/calc-add .js' ;
6
+ import { MyCounter } from ' ../components/my-counter .js' ;
7
7
---
8
8
9
9
<!DOCTYPE html >
@@ -18,11 +18,11 @@ import '../components/Counter.js';
18
18
<strong >Party Mode!</strong >
19
19
Colors changing = partytown is enabled
20
20
</h2 >
21
- <my-counter client:load ></my-counter >
21
+ <MyCounter client:load ></MyCounter >
22
22
<SolidCounter client:load ></SolidCounter >
23
23
<Link to =" /foo" text =" Go to Page 2" />
24
24
<Lorem />
25
- <calc-add num ={ 33 } ></calc-add >
25
+ <CalcAdd num ={ 33 } ></CalcAdd >
26
26
<script type =" text/partytown" >
27
27
// Remove `type="text/partytown"` to see this block the page
28
28
// and cause the page to become unresponsive
You can’t perform that action at this time.
0 commit comments