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 ?
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?
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.
Introduction to promises: exploringjs.com/es6/ch_promises.html#sec_introduction-promises In case someone lime me is wondering, what are the promises afterall?
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