mirror of https://github.com/abpframework/abp.git
8 changed files with 82 additions and 55 deletions
@ -0,0 +1,12 @@ |
|||
import { Directive, ElementRef, Input, Optional, Self } from '@angular/core'; |
|||
import { Table } from 'primeng/table'; |
|||
|
|||
@Directive({ |
|||
selector: '[abpSort]', |
|||
}) |
|||
export class SortDirective { |
|||
constructor(private elementRef: ElementRef, @Optional() @Self() table: Table) { |
|||
console.warn(elementRef); |
|||
setInterval(() => console.warn(table.value), 1000); |
|||
} |
|||
} |
|||
Loading…
Reference in new issue