Тёмный

Promises in angular 2 example 

kudvenkat
Подписаться 836 тыс.
Просмотров 96 тыс.
50% 1

Опубликовано:

 

29 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@chetanpl
@chetanpl 7 лет назад
Your videos is too much good compare with other angular 2 tutorials. Sir I wanna meet you sir ,you are too good. Love you sir
@nmrkmsis2000
@nmrkmsis2000 7 лет назад
Really enjoying your videos. As Angular has released new HTTP client I suggest you to give some videos on that.
@raphaelbernard7954
@raphaelbernard7954 6 лет назад
Thank you Kudvenkat for these wonderful videos
@pragmatic-pr
@pragmatic-pr 6 лет назад
Nice video. But my getEmployeesByCode(code: string): Promise was giving error 'Promise' is not assignable to type 'Promise'. so I changed it to getEmployeesByCode(code: string): Promise Any explanation ?
@raphaelbernard7954
@raphaelbernard7954 6 лет назад
The method below fixes this errorBuild:Type 'Promise' is not assignable to type 'Promise'."
@ravneetkaur8139
@ravneetkaur8139 6 лет назад
Thanks for the great videos ! They are very helpful. I am getting this error : Type 'Promise' is not assignable to type 'Promise'. Much appreciated!
@rohitshukla3647
@rohitshukla3647 6 лет назад
handlePromiseError(error: Response):Promise try previous one instead of 'handlePromiseError(error: Response)'
@manchusandy1
@manchusandy1 6 лет назад
Thanks for the answer , it worked. But for him why it didnt show that error?
@gauravlambha1411
@gauravlambha1411 7 лет назад
Thanks a lot sir. I am waiting for your next video . Promises VS Observable
@raghufriend159
@raghufriend159 7 лет назад
In handlePromiseError method, If am using throw(error), it's showing red underline for getEmployeeByCode() method. I have figured out why it's creating and when I change throw(error); to Promise.reject(error), it got resolved. Why this change happened as shown in video and in my code?
@samuelzhao288
@samuelzhao288 6 лет назад
Excellent angular tutorial!
@folorunso
@folorunso 7 лет назад
Great! Waiting for using redux in angular
@josephregallis3394
@josephregallis3394 6 лет назад
I am still getting emp101 for any of the links I click on. Does anyone know why I'm having this issue? I get the same whether I use Chrome or IE.
@josephregallis3394
@josephregallis3394 6 лет назад
This is extremely frustrating! I keep getting the wrong employee details when I click on a link that is anything other than emp101. I only get details for emp101. I don't know why this is happening.
@jonathansansens
@jonathansansens 5 лет назад
In the beginning this was hardcoded. A few video's ago this is changed.
@miteshvora
@miteshvora 7 лет назад
handePromiseError must inherit Promise
@gangadharkaranapu9062
@gangadharkaranapu9062 5 лет назад
Why one has to go for promise instead of observables?
@jackjackson3507
@jackjackson3507 7 лет назад
waiting for full CRUD operation with this.
@subramaniamananthakrishnan6593
converting observable to toPromise() raises the following error "Build:Type 'Promise' is not assignable to type 'Promise'."
@ravneetkaur8139
@ravneetkaur8139 6 лет назад
I got this same error. Were you able to resolve this?
@rohitshukla3647
@rohitshukla3647 6 лет назад
handlePromiseError(error: Response):Promise try previous one instead of 'handlePromiseError(error: Response)'
@raphaelbernard7954
@raphaelbernard7954 6 лет назад
handlePromiseError(error: Response):Promise { console.error(error); throw(error); }
@josephregallis3394
@josephregallis3394 6 лет назад
This worked for me. Thanks.
@2023AllInOneEntertainment
@2023AllInOneEntertainment 5 лет назад
same error for me
@mdev5446
@mdev5446 4 года назад
Thank you very much!
@ypwygk652
@ypwygk652 3 года назад
This worked for me. Thanks very much Raphael Bernard
@DecentProgrammer
@DecentProgrammer 3 года назад
nice video
@furqans.mahmoud4511
@furqans.mahmoud4511 6 лет назад
please make a custom validation lesson
@nys8260
@nys8260 3 года назад
2021, You Don't need to import ToPromise
@jayantdarade
@jayantdarade 3 года назад
Thanks for info, so can we just use toPromise ?
@nys8260
@nys8260 3 года назад
@@jayantdarade Yes, now observable has topromise direct, You don't need to import it
@GauravChauhan36
@GauravChauhan36 7 лет назад
Introduction to promises: exploringjs.com/es6/ch_promises.html#sec_introduction-promises In case someone lime me is wondering, what are the promises afterall?
@rajatm261
@rajatm261 6 лет назад
Certainly Thumbs Down! Decent explanation, but incomplete as few minor details are missing and are the cause of errors mentioned below. Published doesn't seems to be interested in answering them either
Далее
Angular promises vs observables
9:47
Просмотров 194 тыс.
Angular services tutorial
13:52
Просмотров 170 тыс.
DEMONS ARE ATTACKING BRAWL STARS!!!
09:08
Просмотров 15 млн
На самом деле, все не просто 😂
00:45
Observable retry on error
13:22
Просмотров 66 тыс.
Angular component lifecycle hooks
13:51
Просмотров 218 тыс.
Angular dependency injection
8:14
Просмотров 111 тыс.
Promises vs Observables - Angular (Tutorial #30)
15:44
Angular 2 http service tutorial
22:15
Просмотров 211 тыс.
Why dependency injection
11:53
Просмотров 156 тыс.
DEMONS ARE ATTACKING BRAWL STARS!!!
09:08
Просмотров 15 млн