Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ITemplateRequestService

Hierarchy

  • ITemplateRequestService

Callable

  • __call(tpl: string, ignoreRequestError?: boolean): IPromise<string>
  • Downloads a template using $http and, upon success, stores the contents inside of $templateCache.

    If the HTTP request fails or the response data of the HTTP request is empty then a $compile error will be thrown (unless {ignoreRequestError} is set to true).

    Parameters

    • tpl: string

      The template URL.

    • Optional ignoreRequestError: boolean

      Whether or not to ignore the exception when the request fails or the template is empty.

    Returns IPromise<string>

    A promise whose value is the template content.

Index

Properties

totalPendingRequests

totalPendingRequests: number

total amount of pending template requests being downloaded.

type

{number}

Generated using TypeDoc