-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[docs] Add data/signals docs (#1372)
- Loading branch information
1 parent
0555ca6
commit 3dc7a65
Showing
10 changed files
with
807 additions
and
77 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
10 changes: 10 additions & 0 deletions
10
packages/lit-dev-content/samples/examples/signals/index.html
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<style> | ||
body { font-family: sans-serif; } | ||
</style> | ||
|
||
<script type="module" src="./shared-counter.js"></script> | ||
|
||
<body> | ||
<shared-counter><h2>Instance 1</h2></shared-counter> | ||
<shared-counter><h2>Instance 2</h2></shared-counter> | ||
</body> |
10 changes: 10 additions & 0 deletions
10
packages/lit-dev-content/samples/examples/signals/project.json
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"extends": "/samples/base.json", | ||
"title": "Signals", | ||
"description": "An example of using Signals with Lit with the @lit-labs/signals package.", | ||
"section": "Managing Data", | ||
"files": { | ||
"shared-counter.ts": {}, | ||
"index.html": {} | ||
} | ||
} |
Oops, something went wrong.