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