I am using Express to build the server and I try to use routing to have 2 different angularjs apps. Here is some of the code:
app.route('/')
    .get(function(req, res) {
        res.sendFile(path.join(__dirname, "/home/index.html"));
    });
app.use(express.static(path.join(__dirname, '/home')));
app.route('/test')
    .get(function(req, res) {
        res.sendFile(path.join(__dirname, "/test/index.html"));
    });
app.use(express.static(path.join(__dirname, '/test')));
In the server log I can see the state changes also the second html file is served, but the assets of each app are not loaded.
EDIT: I forgot to add that the code below works the way I want it to do but the thing is I want to do some sort of calculation before passing to that state (sort of validation)
app.use('/', express.static(path.join(__dirname, '/home')));
app.use('/test', express.static(path.join(__dirname, '/test')));