javascript - Using itemprop attributes with AngularJS -


i making changes cart built using angularjs, 1 of tasks add itemprop attributes existing markup eg.

<span itemprop="color">{{colouroption.colour.code}}</span> 

the problem value gets interpolated later after ajax call returns, webcrawler or whatever wants access itemprop doesn't interpolated value, gets angular expression instead.

is there way around this?

you can use ng-bind directive mask templating in event of web-crawlers.

<div ng-bind='colouroption.colour.code'>this search-engine friendly text.</div>


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -