4

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>
unor
  • 87,575
  • 24
  • 195
  • 335
Mirza Delic
  • 3,851
  • 12
  • 49
  • 84
  • hello ... did you ever get a solid answer on this ?? ... it seems to me that the google robots probably don't hang around your webpage for a second or two while angular goes through its compile phases ... – dsdsdsdsd May 26 '16 at 03:02
  • I asked this question again: [SO](http://stackoverflow.com/questions/37450989/will-schema-markup-placed-within-ng-repeats-be-read-by-search-engines) – dsdsdsdsd May 26 '16 at 03:21

2 Answers2

0

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.

dsdsdsdsd
  • 2,730
  • 6
  • 39
  • 53
-1

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

  • What do you mean "if all comes in same category"? I have 100 categories, and then in each category ads, with pagination. – Mirza Delic Sep 11 '15 at 11:49
  • Category means here is Schema category, all things you offer come in product or there may be more relevant option in schema. –  Sep 14 '15 at 08:56