What are the features of Angular 2 Service? The Angular 2 is using services concept and it provide the multiple features to us that are, 1. Services are singleton objects. 2. Services are capable of returning the data in the form promises or observables. 3. Service class is decorated with Injectable decorator. 4. The Injectable decorator is required only if our service class is making use of some Angular injectable like Http, Response and HttpModule service within it. What are the differences between Observables & Promises? 1. Promise :- Promises are only called once and It can return only a single value at a time and the Promises are not cancellable. 2. Observables :- Observables handle multiple values over time and it c an return multiple values and...
Angular, React, JavaScript, Java, PHP, SQL, C#, Vue, NodeJs, TypeScript and Interview Questions Answers