A simple Hello World app I made following various tutorials seams to not want to work. Everything seams correct to me, so can someone please help me? Code is in this repo: http://ift.tt/1JHVJVz
And here you got it just in case: - app.js:
var express = require("express");
var app = express();
var server = require("http").createServer(app);
var io = require("socket.io").listen(server);
server.listen(8080);
console.log("Server started on port 8080");
app.get("/", function(req, res) {
res.sendFile(__dirname + "/index.html");
console.log("Request get");
});
-index.html:
<!DOCTYPE html>
<html ng-app>
<head>
<script src="http://ift.tt/1MeTcXW"</script>
<title>Prueba de AngularJS</title>
</head>
<body>
{{"Hello " + "world"}}
</body>
</html>
Aucun commentaire:
Enregistrer un commentaire