How to read the token from url in ionic


#1

For the resetPage i have given segment as reset. Now I can navigate to this page using a custom url.

@IonicPage({
  segment: 'reset'
})

http://localhost:8100/#/reset

But along with this URL, I’m also passing a token as

http://localhost:8100/#/reset/920431502f4574571aafdff86406e3edc3e424db

I want to read the token from the URL and display it console.log of reset page. Is it possible? if yes, please someone guide me.