Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

@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()
}
 
PREVIOUS NEXT
Tagged: #angular
ADD COMMENT
Topic
Name
9+3 =