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) {
return response.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].
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.