Tuesday, June 12, 2018

Angular Components



In general a component controls a part of the screen or a view. Angular creates, updates, and destroys components as the user moves through the application. Your app can take actions on component using life cycle hooks suck as ngOnInit().

@Component decorator identifies a class as a component. You can keep metadata here. A component usually accommodated by a view.

Component Interaction

  • Using @Input parameters
  • Event listeners with EventEmitter
  • Parents call a @ViewChild()

0 comments:

Post a Comment

Powered by Blogger.


Software Architect at Surge Global/ Certified Scrum Master

Experienced in Product Design, Software Engineering, Team management and Practicing Agile methodologies.

Search This Blog

Facebook