how to load another html page before page is mounted #191
Unanswered
BilalKhatib
asked this question in
Q&A
Replies: 1 comment
-
Hi, the doc says: it is specifically optimized for "sprinkling" a small amount of interactions on an existing HTML page rendered by a server framework I'll assume your app is a multi page app, then page2.html checks certain condition before mounting, if not met, you force page1.html to be loaded, if that's the case, then you can use vue:mounted event to check, and location.href = 'page1.html' to load page1 or even better: check the condition before createApp, location.href='page1.html' if needed, no need for the even mounted |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
is there a way to load an html page before my page is mounted ?
example : i have 2 pages Page1.html and Page2.html
my createApp is inside Page2.html
how can i load my Page1.html with it's scripts inside before my Page2.html mount ?
Beta Was this translation helpful? Give feedback.
All reactions