forked from matschik/component-party.dev
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Everything except for the TS declarations since I think Dylan ought to weigh in Co-authored-by: Michael Rawlings <[email protected]> Co-authored-by: Luke LaValva <[email protected]>
- Loading branch information
1 parent
05e7213
commit a245195
Showing
4 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<let/time = new Date()/> | ||
<lifecycle() { | ||
onMount () { this.timer = setInterval(_ => time = new Date()), 1000) } | ||
<lifecycle | ||
onMount () { this.timer = setInterval(_ => time = new Date(), 1000) } | ||
onDestroy () { clearInterval(this.timer) } | ||
}/> | ||
/> | ||
<p>Current time: ${time.toLocaleTimeString()}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<input#is-available | ||
type="checkbox" | ||
checked:=isAvailable | ||
checked:=input.isAvailable | ||
/> | ||
<label for="is-available">Is available</label> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters