Skip to content

Document <svelte:document> #376

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

Merged
merged 2 commits into from
Dec 15, 2018

Conversation

acstll
Copy link
Contributor

@acstll acstll commented Nov 7, 2018

Should address #374. Or at least be a start.

I tried adding an example, but the REPL wasn't working as expected:

<svelte:document on:mouseenter='set({ entered: true })' />
	
<p>The mouse is {entered ? 'in' : 'out'}</p>

<script>
	export default {
		data() {
			return { entered: false }
		}
	}
</script>

Maybe that's because how the REPL is built?

@Rich-Harris
Copy link
Member

thank you!

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

Successfully merging this pull request may close these issues.

2 participants