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

How to use with Blaze.renderWithData() e.g. #17

Closed
bensmeets opened this issue Apr 12, 2015 · 4 comments
Closed

How to use with Blaze.renderWithData() e.g. #17

bensmeets opened this issue Apr 12, 2015 · 4 comments
Labels

Comments

@bensmeets
Copy link

All going great when included with {{> myTemplate}}. Kudos. But my app uses a lot of Blaze.renderWithData to render the state of the app, so no routers.

O couldn't get the BlazeComponent class matching with the template I'm rendering to trigger. Is it possible that I need to do extra actions to kick it off after a Blaze.render().?

@mitar mitar added the question label Apr 12, 2015
@mitar
Copy link
Member

mitar commented Apr 12, 2015

See the example here. This API is not yet public and will probably change a bit in the future.

@mitar mitar closed this as completed Apr 12, 2015
@bensmeets
Copy link
Author

Will there also be something like Blaze.remove() or something alike? I'm asking, since I like the syntax a lot but need to convert a viewstack-like setup I had running in normal Blaze. I dynamically create and destroy views by Blaze.renderWithData() and Blaze.remove(). Curious if that is possible with purely components as well (or will be maybe).

@mitar
Copy link
Member

mitar commented Apr 25, 2015

Interesting idea. You can see how I am using Blaze.remove here. But you are probably right that we should abstract this out.

@mitar
Copy link
Member

mitar commented Apr 25, 2015

I opened #36.

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

No branches or pull requests

2 participants