Month: October 2017

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 Tutorial : View Encapsulation and Local References

Local References Angular 4 tutorial

Hello all, in the previous post, http://mytechthinking.in/2017/10/11/angular-4-tutorial-custom-data-bindings/ we learned about the custom two way data binding. In this post, we will learn more about the components and how angular manages the components view and also about the local references in templates. View Encapsulation As we know every component has its styles and template. In the last …

Angular 4

Angular 4 Tutorial : Custom Data Bindings

Custom_data_binding

Hello everyone, as we know, we have learned some basics of Angular, in my last post, http://mytechthinking.in/2017/08/26/angular-4-tutorial-understanding-the-data-bindings/, we saw how data bindings in angular works. Now we know how the template can communicate with the business logic. But in modular programming it is important that the modules should interact with each other, in here we have …