Router URL Typescript


#1

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


#2

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