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

Add an example that covers this:from="this" to can-slot’s docs #256

Open
chasenlehara opened this issue Jun 18, 2018 · 0 comments
Open

Comments

@chasenlehara
Copy link
Member

can-slot’s docs cover passing context to a template, but they don’t mention that you can pass the template’s entire context to the slot by writing this:from="this", as mentioned in this comment: #198 (comment)

<can-slot name="test" this:from="this">
    <a-component object:from="myObject" />
    <!-- myObject is defined outside the can-slot -->
</can-slot>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant