Upgrade to Pro — share decks privately, control downloads, hide ads and more …

HTTP Requests In Angular

HTTP Requests In Angular

This presentation basically explains the processes involved in making HTTP Requests in Angular using a small app I've been working on called the musicVoter App... You can check out the project on GitHub at https://github.com/Benneee/musicVoter

Benedict Nkeonye

December 04, 2018
Tweet

More Decks by Benedict Nkeonye

Other Decks in Programming

Transcript

  1. PREVIEW 1. What are HTTP Requests? 2. How to use

    HTTP Requests in a simple Angular App - The musicVoter app 3. Why use HTTP Requests? 4. Summary 5. Questions
  2. 2. HOW TO USE HTTP REQUESTS IN A SIMPLE ANGULAR

    APP 1. Set up a backend for the app - (e.g Firebase) 2. Set up a Service in the angular app - SongDataService 3. Initialise and import the Service in the app.component.ts and app.module.ts 4. Assign a button with the helper function for the HTTP Method in the app.component.html and define function.
  3. WHY USE HTTP REQUESTS? 1. Improve the speed and performance

    of apps 2. Making asynchronous requests 3. Improve usability of an app 4. They are useful across various platforms