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 […]
AngularJS
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 […]
AngularJS ng-checked directive
A common element of all user interfaces is a checkbox.A checkbox allows end users to select or deselect some given option.Checkbox checked and unchecked states corresponds to true and false values.When checkbox is selected it represents a true value while deselected checkbox represents a false value. AngularJS ng-checked directive is used to set the state of checkbox […]
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. […]