File tree Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Original file line number Diff line number Diff line change @@ -34,36 +34,4 @@ Called before the container is removed from the DOM.
34
34
35
35
## Example
36
36
37
- ``` html
38
- <!-- Component.html -->
39
-
40
- {{#if person}}
41
- <h1 >Hello {{person.name}}!</h1 >
42
- {{/if}}
43
- ```
44
-
45
- ``` js
46
- // Container.js
47
-
48
- import { withTracker } from ' meteor/svelte:tracker' ;
49
-
50
- import Persons from ' ./persons.js' ;
51
- import Component from ' ./Component.html' ;
52
-
53
- export default withTracker (Component, {
54
- data (component ) {
55
- component .set ({
56
- person: Persons .findOne ()
57
- });
58
- }
59
- });
60
- ```
61
-
62
- ``` js
63
- // main.js
64
-
65
- import Container from ' ./Container.js' ;
66
-
67
- new Container ({
68
- target: document .querySelector (' #svelte-root' )
69
- });
37
+ See the [ meteor-svelte/tracker-example] ( https://github.com/meteor-svelte/tracker-example ) repository.
You can’t perform that action at this time.
0 commit comments