Angular Tutorial - 21 - Fetch Data Using HTTP

  Рет қаралды 794,252

Codevolution

Codevolution

Күн бұрын

Пікірлер: 355
@Codevolution
@Codevolution 6 жыл бұрын
*There is a change in rxjs version 6. Please watch this video to fix that.* kzbin.info/www/bejne/iZTEfHqojJqmZqs
@FieelFlying
@FieelFlying 6 жыл бұрын
Awesome, thank you!
@manishjuniwal7755
@manishjuniwal7755 6 жыл бұрын
Very nice.....thnx.....do upload more videos
@ifthikkarudheent1159
@ifthikkarudheent1159 5 жыл бұрын
iam using angular7 when i subscribed to observable it is showing error " cant find name 'subscribe' "
@miradama
@miradama 5 жыл бұрын
@@ifthikkarudheent1159 Delete the ";" for the line before the .subscribe(data...
@tolubrand5330
@tolubrand5330 4 жыл бұрын
can you please explain why we are creating an employee inetrface as we know what data is coming from backend and we can directly use it and subscribe it..
@Saurabh2816
@Saurabh2816 4 жыл бұрын
Jeez, this video could win an Oscar if there was a category for 'Most clear explanation to a complex topic'.
@rembautimes8808
@rembautimes8808 3 жыл бұрын
Second vote that - I was stumped for several hours on this , opening dozens of Stack Overflow and Angular IO files on how to accomplish this. The nice thing is how the interface was used to map the data. Vishwas does a great job for Angular newbies like myself ( total Angular experience ~ 16 days )* *From Python land , which is awesome but they don’t have material Ui
@Realswagoverlord
@Realswagoverlord 2 жыл бұрын
Agree 110%
@rshraddha
@rshraddha 3 жыл бұрын
These videos deserve more views. I am currently learning angular and your videos are by far the best. You explain step by step in such an easy way that anyone would easily understand the process.
@BaharBatool
@BaharBatool Жыл бұрын
For angular14 and other issues >> import {Observable} from 'rxjs'; >> in subscribe() define the data type of 'data' FOR EXAMPLE .subscribe((data=any)=>) >> also in employee = [ ] do employee:any instead Overall everything is working completely fine.
@sn66410
@sn66410 4 жыл бұрын
your Angular series saved me from assignments, love your short and clear videos. Thank you!! ☺
@babarhussain6557
@babarhussain6557 4 жыл бұрын
hi how are you
@mirci5459
@mirci5459 Жыл бұрын
Man, I love you! You explained so clear that even I undersrand. I mean, I spent really 9-10 hours to figure out how this schema works and you explained it within 2 videos. Glad you do this content! Even after 5 years from video appeared, it is still helpfull!
@ДмитрийПавловский-д8э
@ДмитрийПавловский-д8э 4 жыл бұрын
Man, thanks so much for your tutorials with detailed explanation! I started learning Angular with your videos.
@vanzinvestor
@vanzinvestor 5 жыл бұрын
Angular 7 use *import { Observable } from 'rxjs';* instead of import { Observable } from 'rxjs/Observable'
@venkatsai-
@venkatsai- 4 жыл бұрын
hello man did u get any solution for this
@CREED.32
@CREED.32 4 жыл бұрын
@@venkatsai- What he has given IS the solution.
@NoName-vw9hl
@NoName-vw9hl 3 жыл бұрын
Thank you so much
@Krazness
@Krazness 4 жыл бұрын
You are a Godsend. I'm loving this series. Thank you!
@Guinhulol
@Guinhulol 6 жыл бұрын
Fix for those who are having issues with Observable on Angular 6+ just run the command "npm install rxjs-compat" then you should be good to go
@c4chachu500
@c4chachu500 4 жыл бұрын
great video...your clear audio, presentation screen, way of presentation, and words you have used, everything made this tutorial perfect and easy to grasp...
@jonatasge
@jonatasge 5 жыл бұрын
I do not speak and I do not understand English, but I was able to understand and learn a little Angular with your video. Thank you very much.
@moduthoms
@moduthoms 6 жыл бұрын
Very good explanation. Not even Angular official site tutorial explains like this.
@anandmane3634
@anandmane3634 2 жыл бұрын
I have been watching you angular videos and I have learned alot. Thanks...
@babarhussain6557
@babarhussain6557 4 жыл бұрын
your video channel is very helpful for so many members and also very helpful for how are started as a beginner
@satyamthassu1509
@satyamthassu1509 5 жыл бұрын
one of the the likes that you are getting every day on your videos one by one are mine! Good work dude! I Subscribed on just completing your first video.!
@MZ-uv3sr
@MZ-uv3sr 3 жыл бұрын
Oh wow that cleared up a lot very quickly. Also thank you for using a good readable font size.
@hakkihantunbak6340
@hakkihantunbak6340 2 жыл бұрын
What an unbelievably clear explanation. Wow.
@daviddonadze221
@daviddonadze221 6 жыл бұрын
no one has explained this subject the way u did it. love your videos.
@rekhamari8736
@rekhamari8736 4 жыл бұрын
Your video nice..i'm fresher so after two time watching your video then only I can understand....tq....
@fernandogomez83
@fernandogomez83 4 жыл бұрын
Man thank you for this video. You thought me Redux and now you are teaching me Angular. :D
@lorem349
@lorem349 2 жыл бұрын
For those getting error in the json array file, 1) Replace all the single quotes with double quotes (can be done easily by using ctrl+h in vs code) 2) Remove the comma from the last value of every object in the array
@Vij2011
@Vij2011 3 жыл бұрын
I like your examples, as every video is independent of previous video.
@merlingrim2843
@merlingrim2843 6 жыл бұрын
FYI - if your import of Observable is failing because you are using version 6 then try this: import { Observable } from 'rxjs';
@TopsilogYum
@TopsilogYum 6 жыл бұрын
it is going to be automatically imported on VS code, it was puzzling at first but yeah
@Guinhulol
@Guinhulol 6 жыл бұрын
For those who are using Angular 6+ just run the command "npm install rxjs-compat" then you should be fine.
@bawagrafix
@bawagrafix 5 жыл бұрын
In Angular 6, this is done automatically, great
@miradama
@miradama 5 жыл бұрын
Also applied to Angular 7: import { Observable } from 'rxjs';
@bobbycvsixfour5258
@bobbycvsixfour5258 6 жыл бұрын
best described Observable and Subscription ever (starting at 5:20)
@yunus5949
@yunus5949 5 жыл бұрын
Is creation of IEmployee structure unnecessary? putting instead, works
@Kim-hm4nb
@Kim-hm4nb 6 жыл бұрын
Hi, Sir, thanx for making tutorials on Angular 6. i learnt a lot of concepts from your tutuorials such as Di, Observables...etc i think your concepts are crystal clear! and also your teaching methodology is so much awesome! i like the way as you teach. Sir i'v a request, kindly make a tutorial on LOGIN AND REGISTRATION SYSTEM in MEAN STACK 6 or at least 5 using mongoose i am waiting your response imran khan from Lahore, Pakistan
@sillapriyadarshni7255
@sillapriyadarshni7255 Жыл бұрын
error solves: 1. if there is error in subscribe, then check if there is a semicolon in before line. If it's there, remove it. 2.correct to public employees=[] as any; in both employee list and employee detail components 3. remove last semicolon in employee.json 4. correct it to import { Observable } from 'rxjs';
@AGUNGKAYA
@AGUNGKAYA 5 ай бұрын
your explanation is the best. Hope you make more content with Angular's new features also
@sasikaadesh8184
@sasikaadesh8184 Жыл бұрын
Really Really useful. Very well explained. Thanks a million! Please do more video.
@jt.633
@jt.633 2 жыл бұрын
thank you for this! you're a very good teacher and clear communicator!!
@purnimabaranwal
@purnimabaranwal 2 жыл бұрын
Perfect way to explain. Thanks for putting so much efforts.
@coltonpekar2675
@coltonpekar2675 3 жыл бұрын
when I try the subscribing code, I get an error for the 'employee = []; cant assign type x[] to type never[] can someone help
@adnankhuwaja1234
@adnankhuwaja1234 2 жыл бұрын
public employee:any[] = []; this will solve your problem
@bawagrafix
@bawagrafix 5 жыл бұрын
Thank God till this tutorial I didn't got stuck anywhere, got running everything. Thanks
@avinashsorab5026
@avinashsorab5026 4 жыл бұрын
Best explanation by far. Understood how Observable works under the hood.
@akshaygupta6321
@akshaygupta6321 5 жыл бұрын
Good Job man!!!very good way to explain the concepts in a easy way..Thanks
@XTheFinalJokerX
@XTheFinalJokerX 4 жыл бұрын
Best explanation ever, veri simple and with examples. Well done, you saved me
@ponyatnoeit169
@ponyatnoeit169 3 жыл бұрын
Nice step by step explanation 👍
@Samuel-np5ng
@Samuel-np5ng 6 жыл бұрын
I'm trying to do the same but, my employees array is always undefined. The data has the content and it is asigned to my array in the subscribe method because if have checked it. However, when the method its finished I check again my array employees and its empty, as if nothing had happened.
@HK-sw3vi
@HK-sw3vi 4 жыл бұрын
there are rarely any video that I like first then start watching
@martinez92100
@martinez92100 3 жыл бұрын
Amazing explanation of observables
@galleeandfarel
@galleeandfarel 2 жыл бұрын
awesome explanation, the best in youtube
@randallp.5578
@randallp.5578 2 жыл бұрын
This is still such a helpful video.. This helped me understand Observables a bit more, thank you very much! will you post any videos using Angular 14?!
@VOLTDOGmusic
@VOLTDOGmusic 5 жыл бұрын
I had an issue locating my employees.json file, I had an assets folder within src/app/assets and one within src/assets, I deleted the one in src/app/assets and put the json file in the src/assets folder directly and this got my app to work! Hope this helps anyone!
@ahmedsalahahmed8387
@ahmedsalahahmed8387 4 жыл бұрын
I think you should add the file as an asset in the angular.json file
@harshaeranda3321
@harshaeranda3321 8 ай бұрын
When god think I'm gonna teach anguler service today❤
@souravnaik6355
@souravnaik6355 3 жыл бұрын
Brilliant explanation . Keep up the good work sir !!
@oviyathiruvalluvanar7687
@oviyathiruvalluvanar7687 3 жыл бұрын
very clear and neat explaination.thankyou so much👌
@atharvsingh310
@atharvsingh310 5 жыл бұрын
HI viswas Thank you for making such a nice video. i have one confusion please help me. I have already setup Angular project and i have to create so many pages and each page have some static content. so my question is for each pages i need to create new component and for each component i need to create new services? or there is other way to do this. please make one video how to feach data from Database
@malithsachintha9084
@malithsachintha9084 4 жыл бұрын
your explanation is great. This was very useful. Thank you
@TheMiguel891
@TheMiguel891 6 жыл бұрын
thanks man!! I was finally able to make it work, your explanation is great!
@luckyv7597
@luckyv7597 3 жыл бұрын
superb and awsome tutorial. Thanks alot for sharing. now I understood clearly . Great Tutorial
@ruudhermans4243
@ruudhermans4243 5 жыл бұрын
At 4.20 you must end the propertie names for the interface using a semicolon. No clue why it does not give you a warning but it's not a JSON-object.
@sonumarathe07
@sonumarathe07 5 жыл бұрын
one of the best angular series... Thanks Sir
@edsalazar4590
@edsalazar4590 6 жыл бұрын
Excellent video series on Angular. I really appreciate the work you have done. Thank you!
@gangamshow5945
@gangamshow5945 4 жыл бұрын
Great video!! What if i want to show only the people that have the name wich start with A?
@sourabhdwivedi5418
@sourabhdwivedi5418 4 жыл бұрын
Very nice way of explanation
@billfrost5257
@billfrost5257 5 жыл бұрын
Really helpful and worked first time on Angular 8.
@AnkitMishra-mo3dv
@AnkitMishra-mo3dv 5 жыл бұрын
I am using Angular 8 I have written code according to this video. But the detail of Employee list is not showing.
@KamalSharma-zw3fl
@KamalSharma-zw3fl 4 жыл бұрын
wow you are perfect, you are a very good teacher
@williamsbron2686
@williamsbron2686 3 жыл бұрын
the content is great keep going ahead♥♥
@PakachiWalid
@PakachiWalid 6 жыл бұрын
Man, you just saved my day .. I have been searching for you for a long time !! THNX
@shubhamtiwari9428
@shubhamtiwari9428 4 жыл бұрын
appreciative work!! crystal clear concept till services thank you
@ashishchauhan5203
@ashishchauhan5203 2 жыл бұрын
Hey man please use jsonplaceholder for API tutorials. Hard coded data is a big no no.
@thisvasilyev
@thisvasilyev 5 жыл бұрын
In general, quite a useful video. But in fact, the result is a memory leak in employee-list.compopent. You can solve this problem by assigning a subscription to a variable. eg this._subcription = this._employeeService.getEmp. And execute this._subcription.unsubscribe() in ngOnDestroy. Or it is better to not subscribe at all. Instead, display data through the async pipe in the template. This is the best practice - because Angular will take care of unsubscribe .
@brendan2240
@brendan2240 4 жыл бұрын
Amazing and simple explanation.
@absarkhan2288
@absarkhan2288 6 жыл бұрын
you are superb sir, and your all videos are amazing.
@jmmmmmmmmmk
@jmmmmmmmmmk 10 ай бұрын
Thank you, good job explaining.
@drorcohen285
@drorcohen285 3 жыл бұрын
Thank you , You saved my life !!!!
@mcaldex
@mcaldex 5 жыл бұрын
This is really useful. Thank you so much!
@xinhang5334
@xinhang5334 3 жыл бұрын
Thank you so much for the explanation! It helps a lot.
@AshishSingh-op2ul
@AshishSingh-op2ul 6 жыл бұрын
The Big one Bro...Completely understandable
@md.julhashossain9758
@md.julhashossain9758 6 жыл бұрын
So Cool Man !!!... Just Described On to the point .. Great Work. !!!
@nikhilvermani9807
@nikhilvermani9807 3 жыл бұрын
have you explained post meathod also in the same way?
@efrainespaderocanaviri3265
@efrainespaderocanaviri3265 4 жыл бұрын
Thanks Friends, your are the best, I'm learning so fast. I could understand about services and observables.
@shivalikakamboj8391
@shivalikakamboj8391 Жыл бұрын
those who are getting error in importing observables write import { Observable } from 'rxjs'; instead of import { Observable } from 'rxjs/Observable'; .
@thomaslohmann9361
@thomaslohmann9361 6 жыл бұрын
Nice tutorial. What about post, put and delete methods? It would be nice if you could make a video about all CRUD operations.
@章魚-l8y
@章魚-l8y 2 жыл бұрын
Awsome video man, I learnt a lot from your tutorial. May I know why we need to have underscore when naming a private variable? Is it necessary?
@avanishkumar1689
@avanishkumar1689 2 жыл бұрын
from where to get the code of this.............. but thanx for nicely explaining the topic..
@mainulhasan35
@mainulhasan35 6 жыл бұрын
Thanks a lot! Your series is really useful.
@baibhavghimire3827
@baibhavghimire3827 3 жыл бұрын
Watching this and not subscribing will be unfair. :)
@AhamedKabeer-wn1jb
@AhamedKabeer-wn1jb 4 жыл бұрын
Beautifull explanation..
@hajnel4597
@hajnel4597 2 жыл бұрын
This is great !! Thank you so much !
@Gimmiyimmy
@Gimmiyimmy 6 жыл бұрын
Very well explain.. You clarified my doubts. Thank you so much.
@chennaiahp5765
@chennaiahp5765 4 жыл бұрын
Very good explanation
@bluepill9131
@bluepill9131 5 жыл бұрын
I notice on employee-list component you did not define “data” after you subscribed to the observable. Is that because the subscribe method knows that data means the information received from the observable?
@woodiemarv
@woodiemarv 5 жыл бұрын
Thought I could help. Yes you are correct. data is just a variable name in the context and could have been anything. ex c1 => class variable = c1
@romeshfernando2959
@romeshfernando2959 3 жыл бұрын
Saved my day thanks
@chrishinwork1374
@chrishinwork1374 5 жыл бұрын
Very cool - do you have lessons on Service Workers? Many thanks
@branden8028
@branden8028 6 жыл бұрын
This is the best tutorial on the subject. Thank you sir!
@akhilgusain2866
@akhilgusain2866 6 жыл бұрын
Liked it very much. Please continue making such videos.
@DeepakGupta-s1z
@DeepakGupta-s1z Жыл бұрын
you helped me a lot. Thanks
@tomturbo12345
@tomturbo12345 6 жыл бұрын
This is a very good explanation!!
@Jenson-M-John
@Jenson-M-John 4 жыл бұрын
Observed & Subscribed This Channel.
@nitindelhiful
@nitindelhiful 6 жыл бұрын
at 4.10 instead of commas maybe we should seperate properties in an interface with a semi colon;
@webtuner
@webtuner Жыл бұрын
Newer version edit: To import {Observable} from 'rxjs/observable'; From now-on we can directly use: import {Observable} from 'rxjs';
@SofianMW
@SofianMW 5 жыл бұрын
awesome tutorial thanks much Vishwas
@moMo-yq3zt
@moMo-yq3zt 4 жыл бұрын
Omg it works, thank you! I have subscribed!
@rachnasingh8976
@rachnasingh8976 4 жыл бұрын
Please tell me how it works and showing content... Plaese let me know
@mo_2212
@mo_2212 5 жыл бұрын
you are PRO BRO, keep cool and thanks!!
@aigerimiskakova963
@aigerimiskakova963 5 жыл бұрын
Thank you for a good explanation. I have an error that observable type is not universal. What can I do with that?
@kikesitosk8xoxtla
@kikesitosk8xoxtla 4 жыл бұрын
in this case: have you done two request for the same data in both components?
@kolos4650
@kolos4650 6 жыл бұрын
Thanks man, this helped me. And even more, this made mE to subscribe(); to your channel! *Bdum tsss* :)
Angular Tutorial - 22 - HTTP Error Handling
5:26
Codevolution
Рет қаралды 359 М.
Angular Tutorial - 23 - Routing and Navigation
12:51
Codevolution
Рет қаралды 931 М.
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 20 МЛН
Triple kill😹
00:18
GG Animation
Рет қаралды 17 МЛН
Osman Kalyoncu Sonu Üzücü Saddest Videos Dream Engine 275 #shorts
00:29
Wait… Maxim, did you just eat 8 BURGERS?!🍔😳| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 9 МЛН
Angular Tutorial - 19 - Using a Service
8:39
Codevolution
Рет қаралды 527 М.
Request API data using Python in 8 minutes! ↩️
8:34
Bro Code
Рет қаралды 21 М.
Angular Tutorial - 20 - HTTP and Observables
7:41
Codevolution
Рет қаралды 678 М.
Post API using HttpClient | Angular 18 Tutorial In Hindi | part 14
14:34
LEARNING PARTNER
Рет қаралды 10 М.
Angular Tutorial - 18 - Dependency Injection
9:25
Codevolution
Рет қаралды 523 М.
Angular HTTP Client Quick Start Tutorial
9:56
Fireship
Рет қаралды 195 М.
React vs Angular in 2024
9:00
Kodaps Academy
Рет қаралды 62 М.
Why aren't you using Fastify? Or Koa? Or NestJS?
9:58
Maximilian Schwarzmüller
Рет қаралды 63 М.
Angular HTTP | From Basics to Advanced
37:08
Get Arrays
Рет қаралды 26 М.
Angular Tutorial - 25 - Route Parameters
9:56
Codevolution
Рет қаралды 378 М.
Elza love to eat chiken🍗⚡ #dog #pets
00:17
ElzaDog
Рет қаралды 20 МЛН