What is the difference between promise and observable?
Below are the list of differences between promise and observable,
|Declarative: Computation does not start until subscription so that they can be run whenever you need the result||Execute immediately on creation|
|Provide multiple values over time||Provide only one|
|Subscribe method is used for error handling which makes centralized and predictable error handling||Push errors to the child promises|
|Provides chaining and subscription to handle complex applications||Uses only .then() clause|
April 06, 2022
What is Angular Framework?
November 04, 2022Angular
What is a Angular module?
November 03, 2022Angular
What are the steps to use animation module?
October 31, 2022Angular