I am using ngx-cookie-service component but as soon as i close the browser the cookies disappears, maybe i have to set the expire parameter but i can't get it , below what the the documentation says:
set( name: string, value: string, expires?: number | Date, path?: string, domain?: string, secure?: boolean ): void;
(I tried with number but it seems that doesn't work)
Thanks in advance.
I've solved it like that
Remember to inject the cookieService
Install