Closed frederikhors closed 4 years ago
From the tutorials of previous versions of svelte, I remember this was merely for easy debugging. By doing this, you can access the parent svelte component (app) from the console.
It means that if you go to browser console, and type app
or window.app
it will be accessible, you could modify the app, and debug it.
For usage questions, please come and chat to us
The content of
main.js
ingithub.com/sveltejs/template-webpack
:The same file in
github.com/sveltejs/template
:I'm wondering what difference
window.app = app;
means.Can you answer please?