Re:We've Open-sourced Rendr
by davej on Friday April 19, 2013 @01:03PM
(#5577608)
Angular uses DOM templating instead of string-based templating (most current JS templating engines are string-based), so you would definitely need to fire up a headless browser (PhantomJS) or DOM (JSDOM) of some sort to get it working.
It would be very slow if you were doing this dynamically so you would probably want to regularly compile and cache your pages.
Re:We've Open-sourced Rendr
by jameswyse on Friday April 19, 2013 @03:04PM
(#5578175)
Yeah this is the best way to serve rendered pages to search engines. I also found this project: https://github.com/ithkuil/angular-on-server - Which might be worth looking at too.
It would be very slow if you were doing this dynamically so you would probably want to regularly compile and cache your pages.
Some links on this topic: https://github.com/steeve/angular-seo http://www.yearofmoo.com/2012/11/angularjs-and-seo.html