【问题标题】:Ng-include partial not rendering with phantomjsNg-include 部分不使用 phantomjs 渲染
【发布时间】:2015-05-31 11:10:57
【问题描述】:

所以,我正在使用 MEAN 堆栈,并且我的登录页面包含许多 Angular ng-include。例如:

<div data-ng-include="'/modules/landing/views/sections/features.client.view.html'">

我也在使用 mean-seo:https://github.com/meanjs/mean-seo。如果通过 ?_escaped_fragment_= 检测到爬虫,这实际上只是使用 phantomjs 呈现页面。

我的问题是通过 ng-include 包含的部分不是由 mean-seo 渲染的,即由 phantomjs。

如果你有任何想法为什么会这样,如果你能分享它们会很棒!

【问题讨论】:

    标签: javascript angularjs seo phantomjs mean-stack


    【解决方案1】:

    我设法使用 prerender.io 让它工作。我仍然不确定为什么当我采用 DIY 方法时它不起作用......

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-20
      相关资源
      最近更新 更多