framework7-vue icon indicating copy to clipboard operation
framework7-vue copied to clipboard

Representing current state in browser URL

Open bcarroll22 opened this issue 9 years ago • 4 comments

Hey sorry if this is already covered somewhere, I couldn't find it in any issues or the docs.

Basically, I'm looking for a way to make it so that the browser URL bar matches the current state of the app. Is that possible with f7? I want it to allow for things like the user typing localhost:8080/about and going straight to the about? Is that currently covered with f7 somehow?

bcarroll22 avatar Sep 11 '17 20:09 bcarroll22

Looks like you are looking for pushState parameter http://framework7.io/docs/init-app.html that you need to pass to f7 parameters

nolimits4web avatar Sep 13 '17 19:09 nolimits4web

http://framework7.io/docs/init-app.html There isn't any pushState parameter, can you say more?

ooptsd avatar Mar 15 '18 15:03 ooptsd

@lizhouyang everything is correct there. This parameter must be set on view in v2

nolimits4web avatar Mar 15 '18 15:03 nolimits4web

@nolimits4web <!-- Main View --> <f7-view id="main-view" url="/" main :pushState="true"></f7-view> that works, thanks

ooptsd avatar Mar 15 '18 16:03 ooptsd