Angular Tutorial - 21 - Fetch Data Using HTTP

Angular Tutorial - 21 - Fetch Data Using HTTP

Codevolution

6 лет назад

786,996 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@mirci5459
@mirci5459 - 18.09.2023 16:02

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!

Ответить
@user-te8tl9yx5w
@user-te8tl9yx5w - 20.07.2023 09:18

you helped me a lot. Thanks

Ответить
@sasikaadesh8184
@sasikaadesh8184 - 30.06.2023 19:38

Really Really useful. Very well explained. Thanks a million! Please do more video.

Ответить
@empaca2000
@empaca2000 - 08.06.2023 00:43

When make a prod version and install the app in IIS, late changes on the json file I have to make a new version of the app instead of copy the json file only?

Ответить
@shivalikakamboj8391
@shivalikakamboj8391 - 16.05.2023 18:34

those who are getting error in importing observables write import { Observable } from 'rxjs'; instead of import { Observable } from 'rxjs/Observable'; .

Ответить
@sillapriyadarshni7255
@sillapriyadarshni7255 - 30.03.2023 13:48

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';

Ответить
@DriveandThrive
@DriveandThrive - 14.03.2023 15:27

yep remove the last comma from the json file and make sure no single quotes

Ответить
@lifeforce3451
@lifeforce3451 - 09.03.2023 12:45

so slow , my god ! go ahead , fast !

Ответить
@naumtinga
@naumtinga - 10.02.2023 19:03

Muito obrigado

Ответить
@rahulsarkar8899
@rahulsarkar8899 - 22.01.2023 21:14

Sir what to do when you want to recieve multiple set of json data .... with that what you've shown we can only cast on one interface..!!

Are we supposed to make a nested interface object to fit all the subset ??

Ответить
@numanali8545
@numanali8545 - 27.12.2022 07:50

Need angular 14 please

Ответить
@BaharBatool
@BaharBatool - 21.12.2022 13:39

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.

Ответить
@webtuner
@webtuner - 27.11.2022 23:37

Newer version edit: To
import {Observable} from 'rxjs/observable';
From now-on we can directly use:
import {Observable} from 'rxjs';

Ответить
@randallp.5578
@randallp.5578 - 13.08.2022 00:40

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?!

Ответить
@ashwinmahajan2941
@ashwinmahajan2941 - 27.07.2022 17:37

Type 'IEmoloyee[ ] ' is not assignable to type ' never[ ]'. I'm getting this error

Ответить
@pavak7539
@pavak7539 - 29.06.2022 14:51

dont know why I am getting the error .subscribe cannot be found.
Please help.

Ответить
@darkriderr15v35
@darkriderr15v35 - 13.06.2022 19:14

hi, getting errors like this

Error: src/app/employee-details/employee-details.component.ts:22:12 - error TS2339: Property 'subscribe' does not exist on type '{ id: number; name: string; age: number; }[]'.

22 .subscribe((data) => {this.employees= data});
~~~~~~~~~


Error: src/app/employee-details/employee-details.component.ts:22:23 - error TS7006: Parameter 'data' implicitly has an 'any' type.

22 .subscribe((data) => {this.employees= data});
~~~~


can you help me

Ответить
@hakkihantunbak6340
@hakkihantunbak6340 - 01.05.2022 04:00

What an unbelievably clear explanation. Wow.

Ответить
@hajnel4597
@hajnel4597 - 30.03.2022 01:00

This is great !! Thank you so much !

Ответить
@ashishchauhan5203
@ashishchauhan5203 - 19.03.2022 16:21

Hey man please use jsonplaceholder for API tutorials. Hard coded data is a big no no.

Ответить
@ganeshkulkarni9648
@ganeshkulkarni9648 - 14.03.2022 18:52

Video not clear. So much confusing and difficult to digest ! 😐 and explanation to some of the key concepts not provided properly. Such as observable, RxJS.

Ответить
@jt.633
@jt.633 - 14.03.2022 02:07

thank you for this! you're a very good teacher and clear communicator!!

Ответить
@anandmane3634
@anandmane3634 - 12.03.2022 01:43

I have been watching you angular videos and I have learned alot. Thanks...

Ответить
@purnimabaranwal
@purnimabaranwal - 11.02.2022 09:48

Perfect way to explain. Thanks for putting so much efforts.

Ответить
@itsfunnyshubh4000
@itsfunnyshubh4000 - 01.02.2022 00:19

@Codevolution... Is it okay to expose db primary key in api request. If not please suggest way to hide them

Ответить
@avanishkumar1689
@avanishkumar1689 - 09.01.2022 15:44

from where to get the code of this.............. but thanx for nicely explaining the topic..

Ответить
@user-qk7nb4tk1l
@user-qk7nb4tk1l - 05.01.2022 04:52

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?

Ответить
@lorem349
@lorem349 - 02.01.2022 18:48

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

Ответить
@mohamedbenyghil2380
@mohamedbenyghil2380 - 18.12.2021 15:22

Thank you man awsom

Ответить
@zayanmakar11
@zayanmakar11 - 25.11.2021 16:38

very good

Ответить
@coltonpekar2675
@coltonpekar2675 - 02.11.2021 21:45

when I try the subscribing code, I get an error for the 'employee = []; cant assign type x[] to type never[] can someone help

Ответить
@sagarpanwar6486
@sagarpanwar6486 - 15.10.2021 12:57

Why we inject everything in constructors only?

Ответить
@harikareddy7526
@harikareddy7526 - 03.10.2021 11:51

Really helpful. thank you

Ответить
@oviyathiruvalluvanar7687
@oviyathiruvalluvanar7687 - 24.09.2021 08:02

very clear and neat explaination.thankyou so much👌

Ответить
@souravnaik6355
@souravnaik6355 - 04.09.2021 10:44

Brilliant explanation . Keep up the good work sir !!

Ответить
@vijendersharma9230
@vijendersharma9230 - 29.08.2021 19:39

I like your examples, as every video is independent of previous video.

Ответить
@0111LFS
@0111LFS - 26.08.2021 20:24

where is the employee list being requested from? Server side or from the browser?

Ответить
@igorr4682
@igorr4682 - 11.08.2021 17:00

this looks and feels like .net core DI

Ответить
@williamsbron2686
@williamsbron2686 - 22.07.2021 12:06

the content is great
keep going ahead♥♥

Ответить
@xinhang5334
@xinhang5334 - 16.07.2021 16:51

Thank you so much for the explanation! It helps a lot.

Ответить
@pietro5898
@pietro5898 - 13.07.2021 15:56

hi, i tried it as you said(i have a real postgresql) but I can't see my data, i tried to print them on the console but I cannot see them.
all i get is an array "[ ]" and when I try to open it i see: "TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them
at Function.r (<anonymous>:1:83)" is there any way to fix it?

Ответить
@nikhilvermani9807
@nikhilvermani9807 - 13.06.2021 19:20

have you explained post meathod also in the same way?

Ответить
@birudulapavansai7373
@birudulapavansai7373 - 09.06.2021 13:37

super explanation

Ответить
@ponyatnoeit169
@ponyatnoeit169 - 23.05.2021 13:59

Nice step by step explanation 👍

Ответить
@trueleowdeo
@trueleowdeo - 20.05.2021 19:54

who is here coz he got tired of reading an endless book

Ответить
@romeshfernando2959
@romeshfernando2959 - 09.05.2021 14:48

Saved my day thanks

Ответить