File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { Inject , Injectable } from '@angular/core' ;
2-
3- import { REQUEST } from '@nguniversal/express-engine/tokens' ;
4-
1+ import { Injectable } from '@angular/core' ;
52import { Subject , Observable } from 'rxjs' ;
63import { CookieAttributes } from 'js-cookie' ;
74
@@ -22,9 +19,6 @@ export abstract class CookieService implements ICookieService {
2219 protected readonly cookieSource = new Subject < { readonly [ key : string ] : any } > ( ) ;
2320 public readonly cookies$ = this . cookieSource . asObservable ( ) ;
2421
25- constructor ( @Inject ( REQUEST ) protected req : any ) {
26- }
27-
2822 public abstract set ( name : string , value : any , options ?: CookieAttributes ) : void ;
2923
3024 public abstract remove ( name : string , options ?: CookieAttributes ) : void ;
Original file line number Diff line number Diff line change 1- import { Injectable } from '@angular/core' ;
1+ import { Injectable , Inject } from '@angular/core' ;
22import { CookieAttributes } from 'js-cookie' ;
33import { CookieService , ICookieService } from './cookie.service' ;
4+ import { REQUEST } from '@nguniversal/express-engine/tokens' ;
45
56@Injectable ( )
67export class ServerCookieService extends CookieService implements ICookieService {
78
9+ constructor ( @Inject ( REQUEST ) protected req : any ) {
10+ super ( ) ;
11+ }
12+
813 public set ( name : string , value : any , options ?: CookieAttributes ) : void {
914 return ;
1015 }
You can’t perform that action at this time.
0 commit comments