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){
res.sendFile('master.html', { root: path.join(__dirname, '/public/views/')
});
});
thanks for your time to help me !
On Saturday, 21 March 2015 14:03:51 UTC+8, Sander Elias wrote:
>
> Hi John,
>
> This line:
> app.get('*',function(req, res){...}
>
> Will return your master file FOR EVERY REQUEST!
> So whatever you do, you will get your master.html.
>
> Hope this helps
> Regards
> Sander
>
>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.