Using Service and HTTP calls in Angular 9

preview_player
Показать описание
in this video we will create angular service and use HTTP Calls to fetch the data for our properties.

Next we will learn about routing and load different components in our application using routing .

You can support me by donating on

Thanks
Studymash
Рекомендации по теме
Комментарии
Автор

The concept you are define in any part which clear and understandable.

syedmohsinali
Автор

There is a lot of learning from your tutorial ..please keep making videos

abhaygupta
Автор

Thanks you so much for sharing. I get a lot of knowledge. It is very helpful for me.

TheinHtay-xy
Автор

Sir excellent explanation about services. Thanks.

GaneshKumar-nems
Автор

The music is good--the course is excellent!

kasperkat
Автор

Awesome content, i am learning a lot from your video, thank u sir.

greencoder
Автор

Greeting from Indonesia. Keep up the good work

vaynard
Автор

so far so good, following it closely.

devenshah
Автор

For anyone getting the error 404 not found! PAY ATTENTION TO THE ASSETS SECTION, I had this issue because i added the src/data folder in the test assets category, you need it to add it to the first one in angular.json, in the build section

georgecosminmarinica
Автор

It keeps showing me this error although my data folder is inside the src and at same level as app-"Failed to load resource: the server responded with a status of 404 (Not Found)".. what do i do ?

gauravlamba
Автор

Hello I'm having this issue I cant seem to find a proper fix


@Component({
selector: 'app-property-list',
templateUrl: './property-list.component.html',
styleUrls:
})
export class PropertyListComponent implements OnInit {
properties: Array<any>;
☠//its says 'properties' has no initializer and is not definitely assigned in the constructor.☠

constructor(private http:HttpClient) { }

ngOnInit(): void {

subscribe((data) =>console.log(data))
}

}

pascalsegoete
Автор

Hi all, I suggest using this on .json files: Fix JSON (Oliver Sturm) . It's on VScode.

kasperkat
Автор

Please make project using database, EF core for services

BaljeetKaur-jlse
Автор

404 not found. Can anyone please help me to progress further.
My folder is placed in correct place, and also added the strictInitialization to false, but still getting 404 error.
I’m stuck can anyone help please

faraazahmed
Автор

in the latest version of angular, i am getting error of Property 'subscribe' does not exist on type ! help ?!

noorulaarefinsyed
Автор

I had back to this video because it is not clear for me what data means in the code. I guess when you say data=>console.log(data) you are implementing an arrow function used in ES6? and the value in data coming from the http.get() the json file, correct? is data an array?

chuchotech
Автор

I have done the same process what have been shown in this module... but after running the application the data was not showing in the browser. In console it is showing error "
Failed to load resource: the server responded with a status of 404 (Not Found)" .

ashrithsista
Автор

Can we do all stuffs in visual studio 19 rather than in visual studio code ?

greencoder
Автор

why dont you use this type of conversion of Observable.??im confused its required or not? Please reply

chandanadas
Автор

Hi Buddy!

The http GET method for fetching data from folder data/properties.json is not works!

catan.sales