Fetching Data in Angular - Do It Correctly

Fetching Data in Angular - Do It Correctly

Monsterlessons Academy

3 года назад

18,255 Просмотров

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


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

Student Learning Informatic
Student Learning Informatic - 13.11.2022 18:44

wich app use for coding ?

Ответить
America Token
America Token - 10.08.2022 17:42

great explaination

Ответить
Anantha kumar R
Anantha kumar R - 22.07.2022 09:27

Hi i have error

No overload matches this call.
Overload 1 of 3, '(observer?: Partial<Observer<Object>> | undefined): Subscription', gave the following error.
Type '(movies: Movie[]) => void' has no properties in common with type 'Partial<Observer<Object>>'.

Ответить
hellbound
hellbound - 09.07.2022 03:54

Hello, thanks for the tutorial, is it possible to run json server on github pages somehow?

Ответить
Shera Faizal
Shera Faizal - 11.05.2022 05:15

Hi I have an error here :

Error: src/app/app.component.ts:19:18 - error TS2769: No overload matches this call.
Overload 1 of 3, '(observer?: Partial<Observer<Object>> | undefined): Subscription', gave the following error.
Type '(users: UserInterface[]) => void' has no properties in common with type 'Partial<Observer<Object>>'.
Overload 2 of 3, '(next: (value: Object) => void): Subscription', gave the following error.
Argument of type '(users: UserInterface[]) => void' is not assignable to parameter of type '(value: Object) => void'.
Types of parameters 'users' and 'value' are incompatible.
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?
Type 'Object' is missing the following properties from type 'UserInterface[]': length, pop, push, concat, and 28 more.
Overload 3 of 3, '(next?: ((value: Object) => void) | null | undefined, error?: ((error: any) => void) | null | undefined, complete?: (() => void) | null | undefined): Subscription', gave the following error.
Argument of type '(users: UserInterface[]) => void' is not assignable to parameter of type '(value: Object) => void'.
Types of parameters 'users' and 'value' are incompatible.
Type 'Object' is not assignable to type 'UserInterface[]'.
The 'Object' type is assignable to very few other types. Did you mean to use the 'any' type instead?

19 .subscribe((users: UserInterface[]) => {

helpp :((

Ответить
vamshi !!!!
vamshi !!!! - 13.03.2022 22:45

Can we deploy angular app with json server
Will json server api's work after deployment

Ответить
vamshi !!!!
vamshi !!!! - 13.03.2022 22:43

Can we deploy angular app with json server
Will json server api's work after deployment
Please reply if u have any idea

Ответить
Trendy Affiliate
Trendy Affiliate - 13.01.2022 21:54

Very clear explanation, in short time, source code available, timestamps.
A lot of helpful tutorials on this channel. THANK YOU SO MUCH FOR THIS! Subscribed!

Ответить
Milan Karunadasa
Milan Karunadasa - 30.12.2021 20:24

Thank you

Ответить
JustCoder
JustCoder - 18.08.2021 20:16

if in the subscribe I put it to the interface it fails but if I set it to type 'any' it works .subscribe((serverUsers: any) => { this.UserListNew = serverUsers; });

Ответить
Nipuna Chathuranga
Nipuna Chathuranga - 07.07.2021 17:25

Thanks Bro

Ответить
Наталья Куцак
Наталья Куцак - 25.03.2021 20:09

Thank you very much for your video.

Ответить
Adel Kedjour
Adel Kedjour - 07.03.2021 20:32

Thanks a lot for this videos, just a feedback, I think you need just to speed up a bit when you talk because you are really speaking too slow where it makes me sleep. (Please don't understand me wrong)

Ответить
Serhiy Trachuk
Serhiy Trachuk - 24.08.2020 13:37

Is it iTerm or default Mac OS terminal?

Ответить