title: How to get cookie on the server side Angular Universal
body: <p>I have an Angular 4 app with server side rendering. On server side I have such code:</p>
  
  <pre><code>const res: express.Response = this.injector.get('RESPONSE');
  res.cookie('Name', 'Value');
  </code></pre>
  
  <p>So, how in the component can I access this cookies?
  I inject Express RESPONSE in my component, but there are no cookies.</p>
  
  <pre><code>@Component({
    selector: 'app-my',
    templateUrl: './my.component.html',
    styleUrls: ['./my.component.scss']
  })
  export class MyComponent implements OnInit {
  
    constructor(@Inject(PLATFORM_ID) private platformId: Object, private injector: Injector) {
    }
    ngOnInit() {
      if (isPlatformServer(this.platformId)) {
        let CircularJSON = require('circular-json');
        let res: express.Response = this.injector.get('RESPONSE');
        console.log("RESPONSE = " + CircularJSON.stringify(res));
      }
    }
  }
  </code></pre>
  
  <p>The problem is to get cookie on server side, before they will be set in browser.</p>