Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Latest commit

 

History

History
32 lines (23 loc) · 536 Bytes

cookies.md

File metadata and controls

32 lines (23 loc) · 536 Bytes

Varie provides a service that interacts with cookies.

Setting

To set something in to the storage :

    this.cookieService.set(
        name: string,
        value: any,
        days?: number,
        path?: string,
        domain?: string,
        secure?: boolean
    );

Getting

To get something in to the storage :

let token = this.cookieService.get("token");

Removing

To remove something in to the storage :

    this.cookieService.remove(name: string, path?: string, domain?: string);