Angular2 routing does not work due to slash in route parameter data

Please help me with this.

I am trying to pass parameters in routing. But when my parameter value has an angular slash character, the processing of the text after the slash is another parameter, and so my routing does not work.

{path: 'resetpassword /: code', component: ResetPasswordComponent}

the code value is some encrypted data, so the data generated by alogorithm has some slashes.

+4
source share
1 answer

- . JavaScript encodeURIComponent()/decodeURIComponent() Base58 (https://github.com/cryptocoinjs/bs58).

JavaScript encodeURI()/decodeURI() , .

, - . , .

0

Source: https://habr.com/ru/post/1652326/


All Articles