AngularJS 2

Pass '+'(plus) character by URLSearchParams in Angular2

  • Posted on: 1 August 2017
  • By: jmu

Recently, I am working on Angular 2. When I tried to send the description by POST request, I found that the '+'(plus) sign cannot be passed to my backend. Then, I read the official document here, and found the reason.

Description

These are the characters that are not encoded: ! $ \' ( ) * + , ; A 9 - . _ ~ ? /

But they also provide a solution if you have to use these characters. I will give an example in this blog.