Skip to content

Commit

Permalink
fix(pipe): use subject for stateChanges
Browse files Browse the repository at this point in the history
BREAKING CHANGE: let it be stable
  • Loading branch information
ihym committed May 26, 2018
1 parent 2f58eae commit 112f0cc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/timeago.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import {
Optional,
ChangeDetectorRef
} from '@angular/core';
import { Subscription, ReplaySubject } from 'rxjs';
import { Subscription, Subject } from 'rxjs';
import { TimeagoClock } from './timeago.clock';
import { TimeagoFormatter } from './timeago.formatter';
import { TimeagoIntl } from './timeago.intl';
import { isDefined, coerceBooleanProperty, dateParser } from './util';
import { filter, map } from 'rxjs/operators';
import { filter } from 'rxjs/operators';

@Injectable()
@Pipe({
Expand All @@ -32,7 +32,7 @@ export class TimeagoPipe implements PipeTransform, OnDestroy {
* - Intl change
* - Clock tick
*/
stateChanges = new ReplaySubject<void>();
stateChanges = new Subject<void>();

constructor(@Optional() intl: TimeagoIntl,
cd: ChangeDetectorRef,
Expand Down

0 comments on commit 112f0cc

Please sign in to comment.