Created
November 8, 2013 21:07
-
-
Save mt3o/7377708 to your computer and use it in GitHub Desktop.
Angular ng-repeat with server side prerendering for seo, with template as separate element
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<span ng-bind="variableValue">Static indexed value</span> | |
<ul ng-include="'your/dynamic/list'"> | |
<li>seo-friendly item1</li> | |
<li>seo-friendly item2</li> | |
</ul> | |
<script type="text/ng-template" id="your/dynamic/list"> | |
<li ng-repeat="item in items" ng-bind="item.name"></li> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment