Angular 2 application consists of a collection of components.Components in Angular 2 application need to interact with other components in the application. Angular 2 provides two useful property decorators for interaction between components. Input and Output decorators are used to pass data into and out of the component.We attach the decorators to the component properties. […]
Angular 2
ngFor directive in Angular 2
Different languages provides for to work with a collection of elements.Similarly when developing User interface sometimes we need to repeat a group of elements.For example there are can be a list of employees which we need to display.To implement this we need to loop over all the elements in a collection and add them to DOM […]
Dependency Injection in Angular 2
Dependency injection is useful for developing decoupled applications.Dependency Injection in Angular 2 is handled by the framework. Dependency Injection in Angular 2 Components In angular 2 to specify the dependencies of a component ,just specify the dependencies as the constructor parameters.Just adding the dependencies as constructor parameters informs the angular 2 framework that the component needs […]
Change detection in Angular 2
Change detection is the mechanism which is used to propagate changes in the model to the view.Change detection mechanism in Angular 2 is much better than the previous version. Data binding in AngularJS depended on the digest cycle.Whenever there is a change in any of the source or destinations involved in a binding all of […]
Angular 2 Example Application
Angular 2 is a client side JavaScript platform for developing web and mobile applications.It is a complete rewrite of angular 1.So Knowing angular 1 is not required to learn angular 2. Following are some of the important points about Angular 2: It is used for creating dynamic html application.Angular 2 applications are a tree of Components. […]