Skip to main content

Posts

Showing posts with the label angular 2 components vs directives

Modern browsers are supported in Angular 2?

All the  Angular 2 framework  code is already being written in ECMAScript 6. The set of modern browsers are 1.         Chrome 2.         Firefox 3.         Opera 4.         Safari 5.         IE version10 and 11. On mobiles, it is supporting to the list of Chrome on Android, iOS 6+, Windows Phone 8+ and Fire-Fox mobile and also trying to support to older versions of Android.

Angular 2 Component Constructor vs. OnInit event

The constructor is a typescript feature. The constructor is only related to class instantiation and it’s nothing to do with Angular 2 and it is use to some initialization processing with respect to class hierarchies for the newly created instance. The ngOnInit event is an Angular 2 life-cycle event/ method that are called after the first ngOnChanges. The ngOnInit method is use to parameters defined with @Input otherwise the constructor is  OK .

13 Best Advantages for Angular2 - [Angular 2 vs. Angular 1]

Why should you use Angular 2 ? What are the Advantages of Angular 2 ? Angular 2 vs. Angular 1 Angular 4 vs. Angular 2 Angular 5 vs. Angular 4 Angular 6 vs Angular 5 The core differences and many more advantages on Angular 2 vs. Angular 1 as following, 1.      It is entirely component based. 2.      Better change detection 3.      Angular2 has better performance. 4.      Angular2 has more powerful template system. 5.      Angular2 provide simpler APIs, lazy loading and easier to application debugging. 6.      Angular2 much more testable 7.      Angular2 provides to nested level components. 8.      Ahead of Time compilation (AOT) improves rendering speed 9.      Angular2 execute run more than two programs at the same time. 10.   Angular1 is controllers and $scope based but Angul...

Angular 2 components vs directives

Angular 2 components vs directives                          @Components @Directive 1.        @Component meta-data annotation is used  to register the components. @Directive meta-data annotation is used  to register the directives. 2.        The components are used to create UI widgets. The directives are used to add behavior to existing DOM elements. 3.        The components are used to split to application into smaller parts. The directives are use to design a reusable components. 4.        Only one component is used per DOM element. More than one directive are used per DOM element. 5.        In the components, ...

7 Best Tutorials with live Examples [Angular 1 & Angular 2]

Use below links and explore in details to read Angular 1, Angular 2 and Interview Questions and Answers and also e- learning book & notes..! Angular 1.x Tutorial and Examples Angular 2 Tutorial and Examples Angular 1.x Interview Questions and Answers Angular 2 Interview Questions and Answers E-Book for Angular 1 with live Examples                                                                                                       JavaScript Interview Questions and Answers I hope you are enjoying with this post! Please share with you friends!! Thank you!!!