Skip to main content

Posts

Showing posts with the label Angular 2 Features and Benefits

What are the differences between Angular 2 Observables & Promises?

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 2 Features and Benefits

According to Angular 2 Docs , “ Angular 2 takes a web component-based approach to building powerful applications for the web. It is used along with TypeScript which provides support for ECMAScript 5 , ECMAScript 6, and ECMAScript 7  . ” Angular 2 Features and Benefits 1.        Mobile First 2.        Future Ready 3.        Flexible Development 4.        Speed and Performance 5.        Supports server-side pre-rendering 6.        Simple and Expressive 7.        Comprehensive Routing 8.        Animations 9.        Hierarchical Dependency Injection 10.    Support for Web Components 11.    Internationalizations and localization (i18n) and Accessibility Building Blocks ...