Skip to content

Commit

Permalink
fix(core): fix wrong import
Browse files Browse the repository at this point in the history
  • Loading branch information
mehmet-erim committed Feb 21, 2020
1 parent 5460d79 commit 96f4ef8
Showing 1 changed file with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { Directive, ElementRef, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
import { takeUntilDestroy } from '@ngx-validate/core';
import {
Directive,
ElementRef,
EventEmitter,
Input,
OnDestroy,
OnInit,
Output,
} from '@angular/core';
import { takeUntilDestroy } from '../utils/rxjs-utils';
import { fromEvent } from 'rxjs';
import { debounceTime } from 'rxjs/operators';

Expand All @@ -16,10 +24,7 @@ export class InputEventDebounceDirective implements OnInit, OnDestroy {

ngOnInit(): void {
fromEvent(this.el.nativeElement, 'input')
.pipe(
debounceTime(this.debounce),
takeUntilDestroy(this),
)
.pipe(debounceTime(this.debounce), takeUntilDestroy(this))
.subscribe((event: Event) => {
this.debounceEvent.emit(event);
});
Expand Down

0 comments on commit 96f4ef8

Please sign in to comment.