Useful for avoiding doing an actual XHR during testing. Part of the solution for #4051 (Other part is a Karma plugin that will create the template cache). Closes #7940
4 lines
90 B
TypeScript
4 lines
90 B
TypeScript
export function setTemplateCache(cache): void {
|
|
(<any>window).$templateCache = cache;
|
|
}
|