Node Angular.js Mirror index.html

  1. First Remove the:

    app.use('/', index);

    Or Equivalents directives.

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

    app.all('/*', function(req, res) { 
        res.sendfile('app_client/index.html'); 
    });

Reference: stackoverflow

Tagged: , , , , ,

Written by David

Leave a Comment

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