Skip to content

Commit 1d71ac2

Browse files
committed
review
1 parent a150302 commit 1d71ac2

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/cdk-experimental/column-resize/column-resize.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {AfterViewInit, ElementRef, NgZone, OnDestroy} from '@angular/core';
9+
import {AfterViewInit, Directive, ElementRef, NgZone, OnDestroy} from '@angular/core';
1010
import {Directionality} from '@angular/cdk/bidi';
1111
import {fromEvent, merge, ReplaySubject} from 'rxjs';
1212
import {filter, map, mapTo, pairwise, startWith, take, takeUntil} from 'rxjs/operators';
@@ -26,14 +26,15 @@ let nextId = 0;
2626
* Base class for ColumnResize directives which attach to mat-table elements to
2727
* provide common events and services for column resizing.
2828
*/
29+
@Directive()
2930
export abstract class ColumnResize implements AfterViewInit, OnDestroy {
3031
protected readonly destroyed = new ReplaySubject<void>();
3132

3233
/* Publicly accessible interface for triggering and being notified of resizes. */
3334
abstract readonly columnResizeNotifier: ColumnResizeNotifier;
3435

3536
abstract readonly directionality: Directionality;
36-
protected abstract readonly elementRef: ElementRef;
37+
protected abstract readonly elementRef: ElementRef<HTMLElement>;
3738
protected abstract readonly eventDispatcher: HeaderRowEventDispatcher;
3839
protected abstract readonly ngZone: NgZone;
3940
protected abstract readonly notifier: ColumnResizeNotifierSource;

src/cdk-experimental/column-resize/overlay-handle.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88

9-
import {AfterViewInit, ElementRef, OnDestroy, NgZone} from '@angular/core';
9+
import {AfterViewInit, Directive, ElementRef, OnDestroy, NgZone} from '@angular/core';
1010
import {coerceCssPixelValue} from '@angular/cdk/coercion';
1111
import {Directionality} from '@angular/cdk/bidi';
1212
import {ESCAPE} from '@angular/cdk/keycodes';
@@ -35,6 +35,7 @@ import {ResizeRef} from './resize-ref';
3535
* Base class for a component shown over the edge of a resizable column that is responsible
3636
* for handling column resize mouse events and displaying any visible UI on the column edge.
3737
*/
38+
@Directive()
3839
export abstract class ResizeOverlayHandle implements AfterViewInit, OnDestroy {
3940
protected readonly destroyed = new ReplaySubject<void>();
4041

0 commit comments

Comments
 (0)