Angular applications are made using Components, most often we will have to arrange the components in a hierarchy (parent/child components). We will have to Pass Values from the parent to child components and from the child to parent component to make the App functional.
To pass values from a parent component to a child component we use the @Input property/decorator.
To pass values from a child component to a parent component we need to emit an event using @Output and EventEmitter. Both are parts of the @angular/core.
To pass values from a parent component to a child component we use the @Input property/decorator.
To pass values from a child component to a parent component we need to emit an event using @Output and EventEmitter. Both are parts of the @angular/core.