How to parse query string in Ionic

Hi, in my app, iam communicating with server, and the response i get is in the format of query string - for example Id=57&Name=Name123&code=1142547895&dir=1.
Is there some elegant way, some method to parse it, so i can get for example object with key value pairs from that string? How do u solve this in your apps?

Did you try google before?

1 min effort.

Posting in forum: 3min effort.