Closed marchelmon closed 7 years ago
This is my code: ` let date = new Date(); date.setDate(date.getDate() + 2);
let options = {expires: date} this.cookieService.putObject('filter', filter, options); console.log(this.cookieService.get('filter'));`
The console.log() logs the cookie, the same console.log call after refresh just gives me 'undefined'
This is my code: ` let date = new Date(); date.setDate(date.getDate() + 2);
The console.log() logs the cookie, the same console.log call after refresh just gives me 'undefined'