angular2
Version:
Angular 2 - a web framework for modern web apps
14 lines (13 loc) • 393 B
TypeScript
import { XHR } from 'angular2/src/compiler/xhr';
/**
* An implementation of XHR that uses a template cache to avoid doing an actual
* XHR.
*
* The template cache needs to be built and loaded into window.$templateCache
* via a separate mechanism.
*/
export declare class CachedXHR extends XHR {
private _cache;
constructor();
get(url: string): Promise<string>;
}