Angular2 : Reactive Forms – Part 2

FormBuilder and FormArray are used for developing complex forms by reactive model approach in Angular 2. In complex forms usually we have dynamic grouping of controls based on business needs, For example populating the dynamic check boxes list and storing the states(checked/unchecked). FormArray - Array of FormControl instances. FormArray  holds the aggregated behavior, like if … Continue reading Angular2 : Reactive Forms – Part 2

Angular2 : Reactive Forms- Part 1

In angular latest version developments we have two ways of creating forms:  Template Driven Model Driven ( Reactive) Major difference is that in reactive forms we don't use ngModel directive. In reactive forms there is no direct binding of object model to directives, rather we create our own model i.e. FormControl , FormGroup instances inside … Continue reading Angular2 : Reactive Forms- Part 1

Angular 2 : New Features

Key Feature Angular 2.0 : $scope is removed. Added logging service dairy.js TypeScript support: added @ annotation Added Routing supports JSON based configuration. Advantage: Support Browser compatibility(IE9 and above,Chrome..etc) and cross platform development. Also support Typescript, ES6, Dart. Fast loading by server pre -rendering, Offline compilation. DI injection.

Angular1.5 .Component() method

.component() Helper method. Allow developer to write in Angular 2 style to build and specify elements and logic on the page. Syntax compared to .directive: module. directive(name, fn); module. component(name, options); Arguments: name : Name of our component. options: Definition Object passed into the component. Example to create counter component: .directive('counter', function counter() {   … Continue reading Angular1.5 .Component() method