angular-cn/modules/angular2/test/platform/browser/xhr_cache_setter.ts

4 lines
90 B
TypeScript

export function setTemplateCache(cache): void {
(<any>window).$templateCache = cache;
}