Angular 6 Tutorial 12: HTTP Requests

preview_player
Показать описание
This tutorial shows you how to perform HTTP requests using Angular's HttpClient module and how to make use of that in a service.

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

ERROR in src/app/services/age-list.service.ts(16, 26): error TS2304: Cannot find name 'MyData'. : this error comes when cut the interface MyData from the service and paste it in the app.component.js
Can you please tell me how to fix

jsbros.
Автор

everything is working fine . except ERROR in src/app/http.service.ts(10, 26): error TS2304: Cannot find name 'myData'.

kapilkosare
Автор

nano file.json is giving me the error as,
'nano' is not recognized as an internal or external command,
operable program or batch file.

pratiksha
Автор

Great tutorials =D Thanks =)
You explain in a very easy way. That's great =)

JordanQueiroz
Автор

i saw some people that return observable type and create an interface of that type to return .
why?
is it better?
do you recommend?
thank you!

orz
Автор

still getting the error - No 'Access-Control-Allow-Origin' header is present on the requested resource.

dgalhotra
Автор

Hi,
Actually your videos are good. But what the main problem is you need to slow down at certain areas while coding while teaching.
Like for example "you are changing response from { } to [ ] and viewing results in Browser console and doing some modifications and again switching and vice versa". All these things happens within 1 or 2 seconds. You switching slides, vs code, terminal, browser multiple times without slowing down. We need to know what error u r getting and how u r troubleshooting. So that we will fix these errors while we are practicing. Have some time interval like 4 or 5 seconds between switching screens. It is like i have to rewind it to find a particular output of code changes.

prabu
Автор

Thank for your tip on php rest code. I was missing
*');
header('Content-Type: application/json');
I did not need this with jquery get .

chunckyfreshnut
Автор

I still get the error No 'Access-Control-Allow-Origin' header is present on the requested resource. even after
adding *");

chirushetty
Автор

Man, I have a question about a point.
I tried put a interface "myData" to work, but in my code it not in use and the property obj stay with error (warning), so, how can I set the interface to make a cast in this property?

Error result: Property 'obj' does not exist on type 'Object'

marcos.correa
Автор

thanks codedamn for such a great tutorial

kapilkosare
Автор

Hi I have come directly to this video. Can you also share the app.component.html file code ? How did you parse `this.allData = data;` into that html view.

javascript_developer
Автор

First learn yourself and then start teaching!!

rahulkohli
Автор

"php -s localhost:1234" not working. It gives an error message "Php is not recognized as an internal or external command" .pls help me to resolve this error

wellthytherapeutics
Автор

php 7.1.7 Development Server started --> please @codedamn
tell me how to do that...

purushothaman
Автор

you wasted too much time formatting json... however nice and clear tutorial. thanks

tejas
Автор

codedamn? What the hell kind of name is that...

theonlycaulfield
Автор

guys if your localhost php file is not working. follow this video you wil get how to run

i was facing same problem then searched a lott and solution is

language is bangla but ignore it. just watch video. you will understand. how php server runs

kapilkosare
Автор

Why you quick to uploaded something without even understand it well? You want to go quick to make youtube money

songlee
Автор

this is childish video. grow up and upload some good stuff.

sukhlalsingh