https://github.com/angular/angular
Raw File
Tip revision: fbbed3d723fa4d255e59acd63d89961bc6f9e62f authored by Jessica Janiuk on 13 April 2022, 18:40:40 UTC
release: cut the v14.0.0-next.13 release (#45616)
Tip revision: fbbed3d
resource_loader.ts
/**
 * @license
 * Copyright Google LLC 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.
 *
 * This is an abstract class, rather than an interface, so that it can be used
 * as injection token.
 */
export abstract class ResourceLoader {
  abstract get(url: string): Promise<string>|string;
}
back to top