Skip to content

Instantly share code, notes, and snippets.

@NetanelBasal
Created May 7, 2021 06:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NetanelBasal/7c5dbc7c00178308792006140e02913c to your computer and use it in GitHub Desktop.
Save NetanelBasal/7c5dbc7c00178308792006140e02913c to your computer and use it in GitHub Desktop.
@Directive({
selector: '[resourceActionsCell]',
})
export class ResourceActionsCellDirective {
@HostListener('visible', ['$event'])
runSomeCode(visible: boolean) {
....
}
}
@NgModule({
declarations: [ResourceActionsCellDirective],
exports: [ResourceActionsCellDirective],
})
export class ResourceActionsCellDirectiveModule {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment