Skip to content

Instantly share code, notes, and snippets.

@arturovt
Created June 6, 2019 23:19
Show Gist options
  • Save arturovt/b5c31f1f092478cbb90b7223209e90da to your computer and use it in GitHub Desktop.
Save arturovt/b5c31f1f092478cbb90b7223209e90da to your computer and use it in GitHub Desktop.
import { Component, ChangeDetectionStrategy, Input, ElementRef } from '@angular/core';
@Component({
selector: 'app-calendar',
template: `
<app-events (chooseEvent)="chooseEvent($event.detail)"></app-events>
`,
changeDetection: ChangeDetectionStrategy.OnPush
})
export class CalendarComponent {
public chooseEvent(event: CelebrationEvent): void { ... }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment