Express.js Angular.js 1 Html5 Mode Not Working

  1. First Remove the:

    app.use('/', index);

    Or Equivalents directives.

  2. Then Edit Main app.js File and Append:

    app.use(function(req, res) {
      res.sendFile(path.join(__dirname, 'app_client', 'index.html'));
    });
    

    In this Case the index.html File is Inside to the app_client Directory…

Tagged: , , , , ,

Written by David

Leave a Comment

Your email address will not be published. Required fields are marked *