2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare const APP_BASE_HREF: OpaqueToken;
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class AsyncPipe implements OnDestroy {
|
|
|
|
constructor(_ref: ChangeDetectorRef);
|
|
|
|
ngOnDestroy(): void;
|
|
|
|
transform(obj: Observable<any> | Promise<any> | EventEmitter<any>): any;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-07-18 06:50:31 -04:00
|
|
|
export declare class CommonModule {
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class CurrencyPipe implements PipeTransform {
|
2016-08-26 12:16:01 -04:00
|
|
|
constructor(_locale: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
transform(value: any, currencyCode?: string, symbolDisplay?: boolean, digits?: string): string;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DatePipe implements PipeTransform {
|
2016-08-26 12:16:01 -04:00
|
|
|
constructor(_locale: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
transform(value: any, pattern?: string): string;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class DecimalPipe implements PipeTransform {
|
2016-08-26 12:16:01 -04:00
|
|
|
constructor(_locale: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
transform(value: any, digits?: string): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class HashLocationStrategy extends LocationStrategy {
|
|
|
|
constructor(_platformLocation: PlatformLocation, _baseHref?: string);
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
getBaseHref(): string;
|
2016-08-23 17:26:31 -04:00
|
|
|
onPopState(fn: LocationChangeListener): void;
|
2016-06-26 14:52:32 -04:00
|
|
|
path(includeHash?: boolean): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
prepareExternalUrl(internal: string): string;
|
|
|
|
pushState(state: any, title: string, path: string, queryParams: string): void;
|
|
|
|
replaceState(state: any, title: string, path: string, queryParams: string): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class I18nPluralPipe implements PipeTransform {
|
|
|
|
constructor(_localization: NgLocalization);
|
|
|
|
transform(value: number, pluralMap: {
|
|
|
|
[count: string]: string;
|
|
|
|
}): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class I18nSelectPipe implements PipeTransform {
|
|
|
|
transform(value: string, mapping: {
|
|
|
|
[key: string]: string;
|
|
|
|
}): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class JsonPipe implements PipeTransform {
|
|
|
|
transform(value: any): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class Location {
|
|
|
|
constructor(platformStrategy: LocationStrategy);
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
|
|
|
go(path: string, query?: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
isCurrentPathEqualTo(path: string, query?: string): boolean;
|
|
|
|
normalize(url: string): string;
|
2016-06-26 14:52:32 -04:00
|
|
|
path(includeHash?: boolean): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
prepareExternalUrl(url: string): string;
|
|
|
|
replaceState(path: string, query?: string): void;
|
|
|
|
subscribe(onNext: (value: any) => void, onThrow?: (exception: any) => void, onReturn?: () => void): Object;
|
|
|
|
static joinWithSlash(start: string, end: string): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
static normalizeQueryParams(params: string): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
static stripTrailingSlash(url: string): string;
|
|
|
|
}
|
|
|
|
|
2016-08-23 17:26:31 -04:00
|
|
|
/** @experimental */
|
|
|
|
export interface LocationChangeEvent {
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
/** @experimental */
|
|
|
|
export interface LocationChangeListener {
|
|
|
|
(e: LocationChangeEvent): any;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class LocationStrategy {
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract back(): void;
|
|
|
|
abstract forward(): void;
|
|
|
|
abstract getBaseHref(): string;
|
2016-08-23 17:26:31 -04:00
|
|
|
abstract onPopState(fn: LocationChangeListener): void;
|
2016-06-26 14:52:32 -04:00
|
|
|
abstract path(includeHash?: boolean): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
abstract prepareExternalUrl(internal: string): string;
|
|
|
|
abstract pushState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
abstract replaceState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class LowerCasePipe implements PipeTransform {
|
|
|
|
transform(value: string): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-07-26 18:20:27 -04:00
|
|
|
export declare class NgClass implements DoCheck {
|
2016-09-09 15:03:51 -04:00
|
|
|
klass: string;
|
2016-07-07 19:35:13 -04:00
|
|
|
ngClass: string | string[] | Set<string> | {
|
2016-09-09 15:03:51 -04:00
|
|
|
[klass: string]: any;
|
2016-06-22 17:56:10 -04:00
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_iterableDiffers: IterableDiffers, _keyValueDiffers: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngDoCheck(): void;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-07-16 13:35:31 -04:00
|
|
|
export declare class NgFor implements DoCheck, OnChanges {
|
2016-06-22 17:56:10 -04:00
|
|
|
ngForOf: any;
|
|
|
|
ngForTemplate: TemplateRef<NgForRow>;
|
|
|
|
ngForTrackBy: TrackByFn;
|
2016-09-08 22:25:25 -04:00
|
|
|
constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<NgForRow>, _differs: IterableDiffers, _cdr: ChangeDetectorRef);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngDoCheck(): void;
|
2016-07-16 13:35:31 -04:00
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgIf {
|
|
|
|
ngIf: any;
|
2016-09-08 22:25:25 -04:00
|
|
|
constructor(_viewContainer: ViewContainerRef, _template: TemplateRef<Object>);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class NgLocalization {
|
|
|
|
abstract getPluralCategory(value: any): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-07-07 17:47:06 -04:00
|
|
|
export declare class NgPlural {
|
2016-06-22 17:56:10 -04:00
|
|
|
ngPlural: number;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_localization: NgLocalization);
|
2016-07-07 17:47:06 -04:00
|
|
|
addCase(value: string, switchView: SwitchView): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgPluralCase {
|
|
|
|
value: string;
|
2016-07-07 17:47:06 -04:00
|
|
|
constructor(value: string, template: TemplateRef<Object>, viewContainer: ViewContainerRef, ngPlural: NgPlural);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgStyle implements DoCheck {
|
2016-07-07 19:35:13 -04:00
|
|
|
ngStyle: {
|
2016-06-22 17:56:10 -04:00
|
|
|
[key: string]: string;
|
|
|
|
};
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_differs: KeyValueDiffers, _ngEl: ElementRef, _renderer: Renderer);
|
2016-06-22 17:56:10 -04:00
|
|
|
ngDoCheck(): void;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgSwitch {
|
|
|
|
ngSwitch: any;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-11-07 15:22:36 -05:00
|
|
|
export declare class NgSwitchCase implements DoCheck {
|
2016-06-22 17:56:10 -04:00
|
|
|
ngSwitchCase: any;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
2016-11-07 15:22:36 -05:00
|
|
|
ngDoCheck(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class NgSwitchDefault {
|
2016-11-07 15:22:36 -05:00
|
|
|
constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<Object>, ngSwitch: NgSwitch);
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @experimental */
|
2016-08-04 14:28:36 -04:00
|
|
|
export declare class NgTemplateOutlet implements OnChanges {
|
2016-06-22 17:56:10 -04:00
|
|
|
ngOutletContext: Object;
|
|
|
|
ngTemplateOutlet: TemplateRef<Object>;
|
2016-06-23 21:19:32 -04:00
|
|
|
constructor(_viewContainerRef: ViewContainerRef);
|
2016-09-14 09:41:44 -04:00
|
|
|
ngOnChanges(changes: SimpleChanges): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class PathLocationStrategy extends LocationStrategy {
|
|
|
|
constructor(_platformLocation: PlatformLocation, href?: string);
|
2016-06-23 21:19:32 -04:00
|
|
|
back(): void;
|
|
|
|
forward(): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
getBaseHref(): string;
|
2016-08-23 17:26:31 -04:00
|
|
|
onPopState(fn: LocationChangeListener): void;
|
2016-06-26 14:52:32 -04:00
|
|
|
path(includeHash?: boolean): string;
|
2016-06-23 21:19:32 -04:00
|
|
|
prepareExternalUrl(internal: string): string;
|
2016-06-22 17:56:10 -04:00
|
|
|
pushState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
replaceState(state: any, title: string, url: string, queryParams: string): void;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class PercentPipe implements PipeTransform {
|
2016-08-26 12:16:01 -04:00
|
|
|
constructor(_locale: string);
|
2016-06-22 17:56:10 -04:00
|
|
|
transform(value: any, digits?: string): string;
|
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare abstract class PlatformLocation {
|
2016-06-23 21:19:32 -04:00
|
|
|
hash: string;
|
2016-06-22 17:56:10 -04:00
|
|
|
pathname: string;
|
|
|
|
search: string;
|
|
|
|
abstract back(): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract forward(): void;
|
|
|
|
abstract getBaseHrefFromDOM(): string;
|
2016-08-23 17:26:31 -04:00
|
|
|
abstract onHashChange(fn: LocationChangeListener): void;
|
|
|
|
abstract onPopState(fn: LocationChangeListener): void;
|
2016-06-23 21:19:32 -04:00
|
|
|
abstract pushState(state: any, title: string, url: string): void;
|
|
|
|
abstract replaceState(state: any, title: string, url: string): void;
|
2016-06-22 17:56:10 -04:00
|
|
|
}
|
|
|
|
|
2016-06-27 13:02:02 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class SlicePipe implements PipeTransform {
|
|
|
|
transform(value: any, start: number, end?: number): any;
|
|
|
|
}
|
|
|
|
|
2016-08-23 16:58:41 -04:00
|
|
|
/** @stable */
|
2016-06-22 17:56:10 -04:00
|
|
|
export declare class UpperCasePipe implements PipeTransform {
|
|
|
|
transform(value: string): string;
|
|
|
|
}
|