Y-E-S ! ! !
that works perfectly :)

I implemented it in a pluker: http://plnkr.co/edit/4v7oZg

Now I only have to test if it can call the API as "same origin", ah! and make it with CORS ;-)

Thanks

Alain Mouette
=== Projetos especiais: <http://lnkd.in/dEu8cNq> ===

On 24-11-2015 06:14, Sander Elias wrote:
Hi Alain,

I forgot all about document.write.... This would be an place where it /is/ appropriate to use it!

|
<html>
<head>
<script>
// Fetch real insex.html from external server
        fetch('realIndex.html')
.then(function(response){
returnresponse.text()
}).then(function(body){
                document.open();
                document.write(body);
                document.close();
});
</script>
</head>
<body>
<h1>Test: index.html</h1>You are being redirected...
</body>
</html>
|


I think this is an even more elegant solution isn't it?

Regards
Sander
--
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] <mailto:[email protected]>. To post to this group, send email to [email protected] <mailto:[email protected]>.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

--
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