Ok, I got it working with two servers using Hapi.js
First I have to use Cors, then I have to make all URL absolute...
But now comes the Angular question: To make it work I need to use
-----
var aplicacao = angular.module("SISCONTATOS", ["ngRoute"])
.config(function($sceProvider) {
$sceProvider.enabled(false);
});
-----
But I should be using:
-----
trustAsResourceUrl("http://192.168.0.218:3000");
-----
But I cannot figure out from the Docs how to use it, or even where to
use it :(
Thanks for your help,
Alain Mouette
=== Projetos especiais: <http://lnkd.in/dEu8cNq> ===
On 24-11-2015 16:30, Alain Mouette wrote:
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>
|
--
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.