[AngularJS] Re: http.get request return master.html file instead of data from the database.

2015-03-21 Thread John Lim
Hi sander, this issue resolved by changing the order of the code from app.get('*',function(req, res){ res.sendFile('master.html', { root: path.join(__dirname, '/public/views/') }); }); routes(app, mongoose); to routes(app, mongoose); app.get('*',function(req, res){

[AngularJS] Re: http.get request return master.html file instead of data from the database.

2015-03-20 Thread Anthony Ettinger
It looks like you have html5 mode on in angular, but aren't handling the redirects server side properly? On Friday, March 20, 2015 at 7:44:15 PM UTC-7, John Lim wrote: hey guys i don't know why am i getting this kind of problem, and i can't seem to find any related issue on stackoverflow or