https://github.com/angular/angular
Raw File
Tip revision: 235bffc5f9a0faf00b9aeb4ef5f15c696ad4b522 authored by Joey Perrott on 17 February 2022, 21:34:21 UTC
release: cut the v14.0.0-next.3 release
Tip revision: 235bffc
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