i can achieve format image shows:
however, want read url in format:
http://www.mysitename.com/resetpassword?key=xxxxxxxx&email=xxx@gmail.com
i have tried deeplinker, supports /
(splash) format, , not support question mark format.
how can in ionic 2?
please me out of dilemma, guys.
there no ionic way.but can using javascript shown below.because browser vendors have implemented native way via url , urlsearchparams.
play with plunker
let url = new url('http://www.mysitename.com/resetpassword?key=xxxxxxxx&email=xxx@gmail.com'); let searchparams = new urlsearchparams(url.search); console.log(searchparams.get('key')); // output: "xxxxxxxx" console.log(searchparams.get('email')); // output: "xxx@gmail.com"
Comments
Post a Comment