Interface CookieOptions


@JsType(isNative=true, name="ng.CookieOptions", namespace="<global>") public interface CookieOptions
Public AngularTS CookieOptions contract exposed through the global ng namespace for Closure-annotated applications.
  • Method Details

    • create

      @JsOverlay static CookieOptions create()
    • getDomain

      @JsProperty String getDomain()
      Domain scope for the cookie.
    • getExpires

      @JsProperty Object getExpires()
      Expiration date, date string, or timestamp. Omit for a session cookie.
    • getPath

      @JsProperty String getPath()
      URL path scope for the cookie.
    • getSamesite

      @JsProperty String getSamesite()
      SameSite policy applied by the browser.
    • isSecure

      @JsProperty boolean isSecure()
      Restrict the cookie to HTTPS connections.
    • setDomain

      @JsProperty void setDomain(String domain)
      Domain scope for the cookie.
    • setExpires

      @JsProperty void setExpires(Object expires)
      Expiration date, date string, or timestamp. Omit for a session cookie.
    • setPath

      @JsProperty void setPath(String path)
      URL path scope for the cookie.
    • setSamesite

      @JsProperty void setSamesite(String samesite)
      SameSite policy applied by the browser.
    • setSecure

      @JsProperty void setSecure(boolean secure)
      Restrict the cookie to HTTPS connections.