[V2]Get Active Page


#1

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


#2

Hi @edoofx,

Try this.

app.view.main.router.url


#3

Hi @edoofx

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

Thanks