How to pass data objects on F7 V2

This does nothing, it will not navigate to book-services:

    let timeslot = {
       time: '9:00',
       date: '12/18/2000'
    };

    let options = { time: timeslot }
    this.$f7router.navigate('/book-services/timeslot/'+JSON.stringify(options));

if I change navigate to this it works:
this.$f7router.navigate(’/book-services/timeslot/’+‘test’);

How can I pass objects?

this.$f7router.navigate('/book-services/timeslot/', { context: options })

Passed context will available as $f7route.context on loaded page

1 Like