Angular with Microdata

梦想的初衷 提交于 2019-12-21 17:31:44

问题


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>

回答1:


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.




回答2:


Yes, you can use...it will work on all (but use if all comes in same category).



来源:https://stackoverflow.com/questions/32458214/angular-with-microdata

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!