I have an abc component (part of the page). He has a mouse button.
@Component({ selector: 'abc-component' }) @View({ <div (mousedown)="mouseDown()" (mouseup)="mouseUp()"></div> }) export class ScheduleComponent { mouseDown(){
But the mouseup event can only be fired when the mouse is inside the <div> . How can I trigger an event even outside of the <div> ?
Do I need to move (mouseup)="mouseUp()" in app.ts and then use something like @Output or service to tell app.ts ? Is there another way?
thanks
source share