Questions tagged [angular2-cookie]

10 questions
3
votes
3 answers

How to add expiry time in hours for a cookie in Angular 2?

How to add expiry time in hours for a cookie, I am able to do with days. Cookie.set('SESSION_TOKEN', sessionToken, 6); // here 6 is days I want in hours. I want cookie to be expired in 6 hours. Cookie.set('SESSION_TOKEN', sessionToken, 6(hours));…
praveen kumar
  • 1,474
  • 4
  • 13
  • 19
1
vote
1 answer

How to import angular2-cookie in angular4 project

I'm trying to import angular2-cookie in my angular4 project. My project is built with angular-cli@1.2.7, here is my package.json: { "name": "ng-admin", "version": "0.0.0", "license": "MIT", "scripts": { "ng": "ng", "start": "ng serve…
Tianzhen
  • 33
  • 7
0
votes
1 answer

Angular2-Cookie Prevents build in AzureDevOps

I'm making an an angular app that uses cookies. I'm testing it locally, using angular2-cookie/core and everything seems to be working fine. But when I try to publish it on AzureDevOps it breaks, with this error message: ERROR in…
Alex
  • 81
  • 1
  • 5
0
votes
1 answer

Angular 5 mixed auth types with legacy system

We've got a legacy system which we want to bring over to Angular. Since the system is big we will go step by step and bring over module by module. Now until we're done with the whole System we will likely need to switch between the Angular SPA and…
hogan
  • 1,434
  • 1
  • 15
  • 32
0
votes
1 answer

After install 'ng2-cookies why cookie.SetCooki not showing

I am using ng2-cookies, but when I try to use setCookie, it's not showing intelligence. I get the error here: Cookie.setCookie('')
user8311110
0
votes
1 answer

How to set cookie object using CookieOptions(earlier CookieOptionsArgs) for setting cookie for other/parent domain?

Is angular2-cookie already Depricated? if yes how to set cookie object using CookieOptions(earlier CookieOptionsArgs) for setting cookie for other/parent domain?
0
votes
1 answer

Failed to load resource angular2-cookie

I am trying to add 'angular2-cookie' in the quick start of angular-2 using visual studio. following https://www.npmjs.com/package/angular2-cookie I have made the following changes so far. npm install angular2-cookie --save System.config map: …
Pacchy
  • 73
  • 11
0
votes
2 answers

Importing angular2-cookie in angular2 rc5 project

I'm trying to import the angular2 cookie module in angular2 rc5 project I just started. I installed the module with npm npm install angular2-cookie edited my angular-cli-build.js file : module.exports = function(defaults) { return new…
Nico AD
  • 1,657
  • 4
  • 31
  • 51
-1
votes
1 answer

Where can I locate the systemjs.config.js file in Angular 2?

I've been trying to fix an error in angular2 which is Cannot find module: 'angular2-cookie/core'. I tried to fix it by following the instructions here. But I can't seem to find or locate the systemjs.config.js file...So, where can I find it?
celty
  • 1
  • 1
-1
votes
3 answers

Cookie undefined in service | cookie value exist in component | angular

api.service.ts import { Injectable, Inject } from '@angular/core'; import { Http, Headers } from '@angular/http'; import { Observable } from 'rxjs/Observable'; import 'rxjs/add/observable/throw'; import 'rxjs/add/operator/map'; import…