Tag: component

Angular 4

Angular 4 Tutorial : Component Lifecycle

Component lifecycle

Hello everyone, in the last post, http://www.mytechthinking.in/2017/10/12/angular-4-tutorial-view-encapsulation-and-local-references/ , we learned about the view encapsulation and various ways to pass contents to DOM. In this post, we will learn about the lifecycle of the components. Let’s discuss them one by one. ngOnInit : This is called on the initialization of the component. ngOnChanges : This is called …

Angular 4

Angular 4 – Understanding the basics


Hello guys, this post is part of complete tutorial series for Angular 4. As in the previous post, http://mytechthinking.in/2017/07/30/angular-4-tutorial-from-scratch/, we have set up the Angular CLI and created new Angular 4 application. In this post, we will learn the basics of Angular 4 which includes the components, selector, data binding and directives. Before we start, …