GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
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?
to your account
I'm a beginner VueJS programmer.
I only know how to trigger a function using @click method from VueJS. However , I want to know how to trigger function after the page loads, something like v-init from Angular.
If you are not asking for load of window or DOMContentLoaded of document, you need to use vue's lifecycle hook.
In your case, mounted is what you want.
@jkzing Thank you for replying. I will check the method you've provided.
Hi, thanks for your interest but Github issues are for bug reports and feature requests only. You can ask questions on the forum, gitter or StackOverflow.
About your issue, what @jkzing said 😄