Tagged Questions
0
votes
1answer
72 views
Expressjs res.render not rendering values in angularjs partials
I am redirecting to next page after login on expressjs after login, I have some partials to be loaded from angularjs routers which is all fine and working. In res.render I have some data set like ...
0
votes
1answer
252 views
Angularjs Express.Js redirect Issue with angular Ajax call
I have a $http pst ajax call from angular js to Express.js api. In Express.js part I ma using async module of node to have some serial execution of code. When no issues I want to redirect to a ...
1
vote
1answer
69 views
Static routing not working in ExpressJS
I have a small app and I have trouble with static routing:
This is my app.js config:
employeesApp.config(['$routeProvider',
function($routeProvider) {
$routeProvider.
...
1
vote
2answers
131 views
Routing issue b/w angularjs and expressjs
Express.js routing of /question/ask
app.get('/question/ask', function (req, res){
console.log('index.js');
console.log('came to question/:id');
res.render('app');
});
The corresponding ...
0
votes
2answers
423 views
server-side changes for $locationProvider.html5Mode(true);
server code:
app.get('/', function(req, res){
console.log('executed "/"')
res.render('home');
});
app.get('/partials/:name', function (req, res) {
console.log('executed partials:name');
...
1
vote
2answers
2k views
AngularJS and nodeJs Express: routes and refresh
My app is "working" fine, but, when I press F5 in browser my problem appears.
My app is organized this way:
nodeJs + express, in Express :
app.use(express.static('public'));
app.use( app.router );
...