Answer the question
In order to leave comments, you need to log in
How to work with html5mode and node.js correctly?
client-side:
when("/page/:id", {
templateUrl: "partials/page.html",
controller : "AppPageController"
});
$locationProvider.html5Mode( true );
<a ng-href="/page/{{Page._id}}">{{Page.name}}</a>
app.use("/page/:id", function( req, res ) {
res.send( req.params )
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question