T
T
teabagp2017-02-09 14:56:27
Angular
teabagp, 2017-02-09 14:56:27

How to get request in angular universal?

You need to get the value of the http request on the server using agular universal and make this solution suitable for different server implementations

Answer the question

In order to leave comments, you need to log in

1 answer(s)
_
_ _, 2017-02-09
@AMar4enko

Please describe the problem in more detail. Do you need to get the request data that came to the server running angular-universal inside an Angular2 app?
UPD:

let req = Zone.current.get('req'); // Express request object
let res = Zone.current.get('res'); // Express response object

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question