Liranius
Liranius

Reputation: 333

Is there a way to parse jsonp on server side in angular universal?

I have a site built with angular2 which requests data from a 3rd-party server. I'm also using angular universal to render pages on server side. And here comes the problem: parsing jsonp relies on dom operations, which is not available on server side. So I can only get static pages without data. Is there a way to parse jsonp on server side?

Upvotes: 2

Views: 447

Answers (1)

rsp
rsp

Reputation: 111296

Yes. See:

There are much more modules on npm. See:

Upvotes: 3

Related Questions