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 ...
0
votes
1answer
135 views
AnguarJS + node.js (web-server.js) remove hashtag from url and support it by server side
As far as i understand in order to remove the hashtag from angularJS i need to add the following code:
config(function($locationProvider) {
$locationProvider.html5Mode(true);
}).
after added ...
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.
...
0
votes
3answers
755 views
AngularJs Routing without hashtag in link?
I've recently began learning AngularJs for web development and am loving it so far. However, I'm not so sure about having hashtags withing the link when routing between views. My main concern is how ...
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 );
...
13
votes
3answers
3k views
Using grunt server, how can I redirect all requests to root url?
I am building my first Angular.js application and I'm using Yeoman.
Yeoman uses Grunt to allow you to run a node.js connect server with the command 'grunt server'.
I'm running my angular ...