All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.java.html.lib.angular.ITemplateRequestService Maven / Gradle / Ivy

package net.java.html.lib.angular;
public class ITemplateRequestService extends net.java.html.lib.Objs {
  protected ITemplateRequestService(net.java.html.lib.Objs.Constructor c, java.lang.Object js) {
    super(c, js);
  }
  private static final class $Constructor extends net.java.html.lib.Objs.Constructor {
    $Constructor() {
      super(ITemplateRequestService.class);
    }
    @Override
    public ITemplateRequestService create(java.lang.Object obj) {
      return obj == null ? null : new ITemplateRequestService(this, obj);
    }
  };
  private static final $Constructor $AS = new $Constructor();
  public static ITemplateRequestService $as(java.lang.Object obj) {
    return $AS.create(obj);
  }
  public IPromise $apply(java.lang.String tpl, java.lang.Boolean ignoreRequestError) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.$apply$438($js(this), tpl, ignoreRequestError));
  }
  public IPromise $apply(java.lang.String tpl) {
    return (IPromise)net.java.html.lib.angular.IPromise.$as($Typings$.$apply$439($js(this), tpl));
  }
  // CallSignature: {"children":[],"kind":"CallSignature","comment":"/**\n         * Downloads a template using $http and, upon success, stores the\n         * contents inside of $templateCache.\n         *\n         * If the HTTP request fails or the response data of the HTTP request is\n         * empty then a $compile error will be thrown (unless\n         * {ignoreRequestError} is set to true).\n         *\n         * @param tpl                  The template URL.\n         * @param ignoreRequestError   Whether or not to ignore the exception\n         *                             when the request fails or the template is\n         *                             empty.\n         *\n         * @return   A promise whose value is the template content.\n         */","name":null,"type":{"kind":"FirstTypeNode","text":null,"typeName":{"kind":"Identifier","text":"IPromise","right":[]},"type":[],"types":[],"typeArguments":[{"kind":"StringKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]}],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"text":null,"declarationList":null,"parameters":[{"name":{"kind":"Identifier","text":"tpl","right":[]},"type":{"kind":"StringKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":null,"dotDotDotToken":null},{"name":{"kind":"Identifier","text":"ignoreRequestError","right":[]},"type":{"kind":"BooleanKeyword","text":null,"typeName":null,"type":[],"types":[],"typeArguments":[],"parameters":[],"elementType":[],"elementTypes":[],"members":[]},"questionToken":{"kind":"QuestionToken"},"dotDotDotToken":null}],"typeParameters":[],"typeArguments":[],"members":[],"heritageClauses":[],"expression":[]}
  /**
  * total amount of pending template requests being downloaded.
  * @type {number}
  */
  public net.java.html.lib.Objs.Property totalPendingRequests = net.java.html.lib.Objs.Property.create(this, java.lang.Number.class, "totalPendingRequests");
  public java.lang.Number totalPendingRequests() { return totalPendingRequests.get(); }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy