Skip to content

Commit a65b388

Browse files
committed
migrate output
1 parent 0b5967b commit a65b388

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

apps/ng-demo/src/components/scoll-tracker/scroll-tracker.directive.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
1-
import {
2-
Directive,
3-
Output,
4-
EventEmitter,
5-
OnDestroy,
6-
OnInit,
7-
} from '@angular/core';
1+
import { Directive, OnDestroy, OnInit, output } from '@angular/core';
82
import { fromEvent, Subscription } from 'rxjs';
93
import { debounceTime } from 'rxjs/operators';
104

115
@Directive({
12-
136
selector: '[scrollTracker]',
147
})
158
export class ScrollTrackerDirective implements OnDestroy, OnInit {
16-
@Output() scrollingFinished = new EventEmitter<void>();
9+
readonly scrollingFinished = output();
1710
subscriptions!: Subscription;
1811

1912
ngOnInit(): void {

0 commit comments

Comments
 (0)