Angular 与微数据 [英] Angular with Microdata
本文介绍了Angular 与微数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
微数据是否适用于动态 Angular ng-repeat
项?
我可以将其用作:
…
解决方案
我找到了 schema验证器,对于我的网站,它实际上显示了角度表达式:
<代码>...发布日期 {{lvl_project['year']}}名称{{lvl_project['title']}}"关键字 {{lvl_project['tools'].join(',')}}...
此外,它不会显示所有 ng-repeat
生成的元素.
在我看来,这似乎是一个强有力的迹象,表明 google-bot 没有没有看到角度生成的元素及其值,但我不知道的问题可能还有更多.
Does Microdata work with dynamic Angular ng-repeat
items?
Can I use it as:
<div itemscope itemtype="http://schema.org/Product" ng-repeat="item in items">
…
</div>
解决方案
I have found schema validator which, for my site actually shows angular expressions:
...
datePublished {{lvl_project['year']}}
name "{{lvl_project['title']}}"
keywords {{lvl_project['tools'].join(',')}}
...
Furthermore, it does NOT show all of the ng-repeat
-generated elements.
This seems to me like a strong indication that the google-bot did not see the angular-generated elements and their values, but there could be more to the issue that I don't know.
这篇关于Angular 与微数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文