refactor: correct api modifier flags
This commit is contained in:
parent
a5a422f8e7
commit
70d944a59c
|
@ -74,9 +74,10 @@ export class AsyncPipe implements OnDestroy {
|
||||||
_subscription: Object = null;
|
_subscription: Object = null;
|
||||||
/** @internal */
|
/** @internal */
|
||||||
_obj: Observable<any>| Promise<any>| EventEmitter<any> = null;
|
_obj: Observable<any>| Promise<any>| EventEmitter<any> = null;
|
||||||
private _strategy: SubscriptionStrategy = null;
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
public _ref: ChangeDetectorRef;
|
_ref: ChangeDetectorRef;
|
||||||
|
private _strategy: SubscriptionStrategy = null;
|
||||||
|
|
||||||
constructor(_ref: ChangeDetectorRef) { this._ref = _ref; }
|
constructor(_ref: ChangeDetectorRef) { this._ref = _ref; }
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
|
|
|
@ -118,7 +118,7 @@ export class DatePipe implements PipeTransform {
|
||||||
return DateFormatter.format(value, defaultLocale, pattern);
|
return DateFormatter.format(value, defaultLocale, pattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
supports(obj: any): boolean {
|
private supports(obj: any): boolean {
|
||||||
if (isDate(obj) || isNumber(obj)) {
|
if (isDate(obj) || isNumber(obj)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import {Injectable, PipeTransform, WrappedValue, Pipe} from '@angular/core';
|
import {PipeTransform, Pipe} from '@angular/core';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
isNumber,
|
isNumber,
|
||||||
|
|
Loading…
Reference in New Issue