40input and 40output in angular

Solutions on MaxInterview for 40input and 40output in angular by the best coders in the world

showing results for - " 40input and 40output in angular"
Giuseppe
13 Oct 2017
1Input is used to receive data in whereas Output is used to send data out.	
2Output sends data out by exposing event producers, usually EventEmitter objects.	
3@Component({
4  selector: 'todo-item',
5  ...
6})
7export class TodoItemComponent {
8  @Input()  item
9  @Output() onChange = new EventEmitter()
10}