Node AngularJs How to Mirror index.html File

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

Leave a Reply

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