Click on Back link and execute method?


#1

I have a component that execute a method on mount, which works great. When I click on the next page and navigate back, I would like to execute this same method. How can this be accomplish?

Blockquote

<template id="page-friends">
    <f7-page>
        <f7-navbar back-link="Back" sliding>
            <f7-nav-center sliding>Friends</f7-nav-center>
        </f7-navbar>
        <f7-list media-list>
            <f7-list-item v-for="item in itemFriends"
                :link="item.link"
                :media="item.avatar"
                :title="item.username"
                :text="item.message">
            </f7-list-item>
        </f7-list>
    </f7-page>
</template>

Blockquote


#2

onPageAfterAnimation calback