相关疑难解决方法(0)

搜索引擎如何处理AngularJS应用程序?

关于搜索引擎和SEO,我看到AngularJS应用程序存在两个问题:

1)自定义标签会发生什么?搜索引擎会忽略这些标签中的所有内容吗?即假设我有

<custom>
  <h1>Hey, this title is important</h1>
</custom>
Run Code Online (Sandbox Code Playgroud)

<h1>即使是在自定义标签内,也会被编入索引?


2)有没有办法避免索引{{}}的搜索引擎字面上绑定?即

<h2>{{title}}</h2>
Run Code Online (Sandbox Code Playgroud)

我知道我可以做点什么

<h2 ng-bind="title"></h2>
Run Code Online (Sandbox Code Playgroud)

但是,如果我想让爬虫"看到"标题怎么办?服务器端渲染是唯一的解决方案吗?

seo html5 search-engine google-search angularjs

696
推荐指数
10
解决办法
21万
查看次数

标签 统计

angularjs ×1

google-search ×1

html5 ×1

search-engine ×1

seo ×1