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('`,   { params: { sort: 'ascending' } });   

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

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.