Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refs #1

Open
wildfiremedia opened this issue Dec 2, 2016 · 2 comments
Open

Refs #1

wildfiremedia opened this issue Dec 2, 2016 · 2 comments

Comments

@wildfiremedia
Copy link

wildfiremedia commented Dec 2, 2016

In your blog mentioning "to add self references in the template", you mean this:
https://svelte.technology/guide#refs

TodoMVC that use ref and JSON without hardcode should fit your treeview code.
https://github.com/sveltejs/svelte-todomvc

@thelgevold
Copy link
Owner

thelgevold commented Dec 2, 2016

In my post I am referring to self references using the tag element that represents the component. Basically allow the component template to call itself to create a recursive template.

Similar to this: http://www.syntaxsuccess.com/viewarticle/recursive-treeview-in-angular-2.0
The linked example is Angular 2, but is illustrates the concept.

@thelgevold
Copy link
Owner

There is an issue logged for this here: sveltejs/svelte#51

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants