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
Post a Comment