Answer the question
In order to leave comments, you need to log in
How to do routing when using angular on node?
Routing should be done, as I understand it, on a node like
app.get('/',function(req,res){
res.sendFile(path.join(publicDir, 'index.html'));
});
.state('main', {
url: "/",
abstract: true,
templateUrl: "templates/main.html",
controller: 'AppCtrl',
data: {
requireLogin: false
}
})
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