AngularTS
    Preparing search index...

    Type Alias TemplateRequestService

    TemplateRequestService: (
        templateUrl: string,
        options?: TemplateRequestOptions,
    ) => Promise<string>

    Returns cached template text or downloads it through $http and stores it in $templateCache. Concurrent requests for the same URL share one download. A consumer signal cancels only its own wait; the download is aborted after every consumer has cancelled. Calls without a signal keep the download alive. $compile.resourceUrlPolicy validates or rewrites the URL before lookup. HTTP failures reject; an empty successful response is returned unchanged.

    Type Declaration

      • (templateUrl: string, options?: TemplateRequestOptions): Promise<string>
      • Parameters

        • templateUrl: string

          The template URL.

        • Optionaloptions: TemplateRequestOptions

          Cancellation for this consumer.

        Returns Promise<string>

        A promise whose value is the template content.