@Component({
selector: 'my-app',
template: `
<button (outSideEventHandler)="reportAnalytics($event, 'Action')">Report to analytics</button>
<p>Status: {{status}}</p>
<button (click)="status = 'Change detection running!'">Run change detection</button>
`,
})
export class App {
status;
constructor() {
this.status = "";
}
reportAnalytics($event, action) {
console.log(action);
}
ngAfterViewChecked() {
console.log('View checked!!!!!')
}
}