Skip to content

Commit 5e6fc78

Browse files
committed
Link to Tracker example
1 parent 02850c6 commit 5e6fc78

File tree

1 file changed

+1
-33
lines changed

1 file changed

+1
-33
lines changed

README.md

Lines changed: 1 addition & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,4 @@ Called before the container is removed from the DOM.
3434

3535
## Example
3636

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.

0 commit comments

Comments
 (0)