What is the difference between an observable and a promise?



What is the difference between an observable and a promise?..

Answer / Ritesh Sinha

Observables are a more powerful, flexible alternative to Promises. While Promises can only handle one value or an error, Observables can emit multiple values over time. Additionally, Observables have operators for manipulating and transforming data sequences, making them more versatile.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More AngularJS Interview Questions

How looping has been done in AngularJS?

1 Answers  


Explain what is key difference between angular expressions and JavaScript expressions?

1 Answers  


What is an AsyncPipe in Angular?

1 Answers  


What is deep linking in angular 4?

1 Answers  


List the key components of angular 2?

1 Answers  


What is the name of directive is used to bootstrap an angular app?

1 Answers  


Explain event emitters in angular 2 and how it works?

1 Answers  


Why is angular called angular?

1 Answers  


Global variables in angularjs?

1 Answers  


What is the use of $routeprovider in angularjs? What is $rootscope ?

1 Answers  


What is angular compatibility compiler (ngcc) in angular 7?

1 Answers  


What are events in angular?

1 Answers  


Categories