fetch

Fetching Data from REST API in Angular

0:00
↔️ ↕️

Timecodes:

hello guys my name is bastian passion in

this video i will go through how to

actually fetch data from backend or from

an api per se

and the thing the first thing we want to

be able to do is we need to set up a

route so we'll create a component

ng generate component let's call it home

and we also want to set up a service so

just call it ng

generate service my data so it will be

named my data service

uh so once this is done just find

apparently module here we need to

specify a path so when we are on empty

it will be like on the main screen in

this case

and use component home component in this

way so we want to the home component to

be the first page so now you should be

able to see home works


Related queries:


how to fetch data from api in angular 12
how to fetch data from api in angular 8 stackblitz
how to fetch data from api in angular 14
how to fetch data from api in angularjs
how to fetch data from api in angular 10
how to fetch data from api in angular 12 stackblitz
how to get data from api in angular 13
how to fetch json data from api in angular
how to get data from rest api in angular