Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. @Component({
  2. selector: 'some-component',
  3. templateUrl: 'some.template.html',
  4. })
  5. export class SomeComponent {
  6. constructor(private eventQueue: EventQueueService) {}
  7.  
  8. onClick(event: MouseEvent) {
  9. this.eventQueue.dispatch(new AppEvent(AppEventType.ClickedOnNotification, event));
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement