角度与微数据 [英] Angular with Microdata
本文介绍了角度与微数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
微数据是否可以与动态Angular ng-repeat
项目一起使用?
Does Microdata work with dynamic Angular ng-repeat
items?
我可以将其用作:
<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(',')}}
...
此外,它不会显示所有ng-repeat
生成的元素.
Furthermore, it does NOT show all of the ng-repeat
-generated elements.
在我看来,这似乎是一个强有力的信号,表明Google-bot并未看不到看到角度生成的元素及其值,但是还有更多我不知道的问题.
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.
这篇关于角度与微数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文