Answer the question
In order to leave comments, you need to log in
How to implement lazy load with url change? How to change url without actually redirecting?
How to implement a function on a website when the page scrolls down and automatically loads new content and changes the url?
For example, there is this:
data () {
return {
articles: [
{title: 'Article One', slug: 'article-one'},
{title: 'Article Two', slug: 'article-two'}
]
}
}
<component :data="articles[0]" :is="slug"></component>
this.$router.push('/article-two')
Answer the question
In order to leave comments, you need to log in
Ajax load articles, history.pushState to change the URL in the browser.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question