Angular 4 universal embedded in wordpress

I have wordpress website that has the product section build in angular 4. The site is not entirely build in angular. Is it possible to use universal to pre-render those angular 4 widgets on the server or does universal only works if the site entirely in angular?

Thanks Olaf


It depends on the hosting environment.

Basically, you need to configure WordPress to ignore the root URL of your angular app (eg MySite.com/products), and then you need your web server (IIS / Apache / ?) to have that route configured to deliver your angular app.

Specific details depend on what host you use and whether it can run node server in this shared environment as Angular Universal runs on node server

链接地址: http://www.djcxy.com/p/31388.html

上一篇: 如何制作角度为2的应用程序可抓取

下一篇: 嵌入在wordpress中的Angular 4通用