Simplified parameter passing in HTTP

Angular has simplified passing parameters to HTTP requests. In the next code snippet, note that we pass a value to sort parameter in the HTTP GET call:

http.get('http://www.programmerguide.net/api/articles`,   { params: { sort: 'ascending' } });   

Get Learning Angular for .NET Developers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.