Injected Code

2

I use Framework7 and use the injected code via JavaScript. I need when the user clicks a certain button on the "Injected Page" return to the main.

The history.go(-1) and the window.history.back(); do not work because the pages are not in the history.

    
asked by anonymous 21.06.2018 / 16:04

1 answer

1

F7 itself has this function:

app.router.back(); //Volta para a página anterior.

or

app.router.navigate('/'); //Volta para o index, configurado nas rotas.
    
09.10.2018 / 16:00