[V2]Get Active Page

how i can get active page for V2 ? in V1 , i can access with myApp.getCurrentView().activePage.name
but when im trying access with V2 app.getCurrentView().activePage.name . i got nothing…

@nolimits4web

Hi @edoofx,

Try this.

app.view.main.router.url

1 Like

Hi @edoofx

can you try with ‘myApp.views.main.router.currentPageEl.dataset.name’.

Thanks