lundi 30 octobre 2017

Vuejs go to anchor after redirection

in my <div id="app">.....</div> i have something like the following

        <div class="fp-row4-content">
            ... ROW 1 ...
        </div>
            <div class="partition-line"></div>
        <div class="fp-row4-content">
            ... ROW 2 ...
        </div>
            <div class="partition-line"></div>
        <div class="fp-row4-content">
            ... ROW 3...
        </div>
            <div class="partition-line"></div>
        <div class="fp-row4-content">
            ... ROW 4 ...
        </div>
            <div class="partition-line"></div>
        <div class="fp-row4-content">
            ... ROW 5 ...
        </div>

If I click on each of these row, they will bring me to the same page. But after the page load, I want them to jump to 5 different specific anchor.

Is it possible to do it with Vuejs (I am using Laravel) ? Will vue-router do the job? Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire