Answers for "@input and @Output in angular"

1

@input and @Output in angular

Input is used to receive data in whereas Output is used to send data out.	
Output sends data out by exposing event producers, usually EventEmitter objects.	
@Component({
  selector: 'todo-item',
  ...
})
export class TodoItemComponent {
  @Input()  item
  @Output() onChange = new EventEmitter()
}
Posted by: Guest on August-05-2021

Code answers related to "@input and @Output in angular"

Code answers related to "Javascript"

Browse Popular Code Answers by Language