Add them to an element with: (click)="myFunction() or (keyup) etc. - provide the name of the event type, then bind a function to it.