add output, eventemitter to empty-state-card component
import {
Component,
Input,
+ Output,
+ EventEmitter,
TemplateRef,
OnInit,
HostBinding
@@ -28,8 +30,13 @@ export class EmptyStateCardComponent implements OnInit {
@Input() body: TemplateRef<any>;
@Input() topElement: TemplateRef<any>;
@Input() colClass: string;
+ @Output() onClick = new EventEmitter<any>();
@HostBinding() class;
+ onSelect($event) {
+ this.onClick.emit($event);
+ }
+
ngOnInit() {
this.class = 'empty-state-card card ' + this.colClass;
}
