Architecture of Angular 4 | How Angular 4 worked