Package org.angular.ts.ng
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 Summary
Modifier and TypeMethodDescriptionstatic CookieOptionscreate()Domain scope for the cookie.Expiration date, date string, or timestamp.getPath()URL path scope for the cookie.SameSite policy applied by the browser.booleanisSecure()Restrict the cookie to HTTPS connections.voidDomain scope for the cookie.voidsetExpires(Object expires) Expiration date, date string, or timestamp.voidURL path scope for the cookie.voidsetSamesite(String samesite) SameSite policy applied by the browser.voidsetSecure(boolean secure) Restrict the cookie to HTTPS connections.
-
Method Details
-
create
-
getDomain
Domain scope for the cookie. -
getExpires
Expiration date, date string, or timestamp. Omit for a session cookie. -
getPath
URL path scope for the cookie. -
getSamesite
SameSite policy applied by the browser. -
isSecure
@JsProperty boolean isSecure()Restrict the cookie to HTTPS connections. -
setDomain
Domain scope for the cookie. -
setExpires
Expiration date, date string, or timestamp. Omit for a session cookie. -
setPath
URL path scope for the cookie. -
setSamesite
SameSite policy applied by the browser. -
setSecure
@JsProperty void setSecure(boolean secure) Restrict the cookie to HTTPS connections.
-