Explain the difference between Promise and Observable in Angular?
S.no | Promise | Observable |
---|---|---|
1. | In Angular, A Promise operates a single event when an async operation fails or completes | The Observable allows passing zero or more events where the callback is received for each event. |
BY Best Interview Question ON 02 Jul 2020