[英]Ng-include partial not rendering with phantomjs
So, I am using the MEAN stack and my landing page includes a number of Angular ng-include's. 所以,我正在使用MEAN堆栈,我的登陆页面包含许多Angular ng-include。 For example:
例如:
<div data-ng-include="'/modules/landing/views/sections/features.client.view.html'">
I'm also using mean-seo: https://github.com/meanjs/mean-seo . 我也使用mean-seo: https : //github.com/meanjs/mean-seo 。 This essentially just uses phantomjs to render the page if a crawler is detected via ?_escaped_fragment_=.
如果通过?_escaped_fragment_ =检测到爬虫,这实际上只是使用phantomjs来呈现页面。
My problem is that the partials being included via the ng-include are not rendered by mean-seo, ie by phantomjs. 我的问题是通过ng-include包含的部分不是通过mean-seo呈现的,即通过phantomjs呈现。
If you have any ideas why this might be it would be terrific if you could share them! 如果你有任何想法,为什么这可能是非常好的,如果你可以分享它们!
I managed to get this to work using prerender.io. 我设法使用prerender.io来使用它。 I'm still not certain why it wasn't working when I was taking a DIY approach...
当我采用DIY方法时,我仍然不确定它为什么不起作用......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.