mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
5af143e8e4
AOT compilation can be executed synchronously now, if the `ReosurceLoader` returns a string directly (and no `Promise`).
16 lines
395 B
TypeScript
16 lines
395 B
TypeScript
/**
|
|
* @license
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
*
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
* found in the LICENSE file at https://angular.io/license
|
|
*/
|
|
|
|
/**
|
|
* An interface for retrieving documents by URL that the compiler uses
|
|
* to load templates.
|
|
*/
|
|
export class ResourceLoader {
|
|
get(url: string): Promise<string>|string { return ''; }
|
|
}
|