Router URL Typescript

Can we use window.app.views.current.router.url? Cause it’s not defined in router.d.ts. I see window.app.views.current.router.currentRoute.url is accessible from Typescript however. Should I be using that instead? Or should url:string be added to “interface Router” in router.d.ts?

Using Framework7 3.5.2

Yes, router.url is for internal usage, use better router.currentRoute.url instead

1 Like