And how to save computed CSS styles? document.html() will give you just 
html, computed CSS styles will be lost.

On Wednesday, April 25, 2012 8:50:54 AM UTC+4, Misko Hevery wrote:
>
> We have not done this, but if you feel up to it here is what you can try
>
>
>    1. get node.js running
>    2. install of the many DOM implementations for node 
>    3. Get your angular page running inside the node.js.
>    4. Get a hold of the $browser service and call 
>    notifyWhenNoOutstandingRequests() this will tell you when the page 
> finished 
>    rendering
>    5. Do document.html() to get rendered HTML 
>    6. send it to the crawler 
>
>
> This is a lot more complicated then it seems, and I am sure you will run 
> into many issues, but it should work in theory. :-)
>
> Good luck, and do report back. 
>
> -- Misko
>
>
> On Tue, Apr 24, 2012 at 7:21 PM, Johan <[email protected] <javascript:>
> > wrote:
>
>> See this post:  
>> https://groups.google.com/forum/#!topic/angular/C3LFZYaGQqo 
>>
>>
>> On Wednesday, April 25, 2012 6:24:05 AM UTC+12, Harlley Oliveira wrote:
>>>
>>> Hi, 
>>>
>>> Is it possible to save a HTML DOM rendered by Angular to a local HTML 
>>> file? 
>>>
>>> Harlley Oliveira
>>>
>>  -- 
>> You received this message because you are subscribed to the Google Groups 
>> "AngularJS" group.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msg/angular/-/8P2Jy1dBHQMJ.
>>
>> To post to this group, send email to [email protected]<javascript:>
>> .
>> To unsubscribe from this group, send email to 
>> [email protected] <javascript:>.
>> For more options, visit this group at 
>> http://groups.google.com/group/angular?hl=en.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to