I'm trying to get a third-party Angular directive ([ngCart](http://ngcart.snapjay.com/docs)) to work with my Angular application. It seems like the `ngcart` directives are looking for a templateUrl as a relative path to the directive, and instead it seems like Express is trying to serve up the files instead of the directive finding the HTML file at the relative `templateUrl` path.

### Project structure

```
projectName
    | - bower_components/
    | - node_modules/
    | - public/
        | - css
        | - index.html
        | - app.js (angular app)
    | - src/
        | - server.js (express app)
        | - routes/
        | - models/
    | - package.json

```

### server.js

```
...
app.use("/", express.static("public"));
app.use('/bower_components', express.static(__dirname + '/../bower_components'));

app.listen(8000, function () {
    console.log("App is listening");
});

```

### third-party directive file causing issues:

```
templateUrl: function(element, attrs) {
    if (typeof attrs.templateUrl == 'undefined') {
        return 'template/ngCart/addtocart.html';  // This is the relative path that's freaking out
    } else {
        return attrs.templateUrl;
    }
}

```

The console error I'm getting is:
`GET http://localhost:8000/template/ngCart/addtocart.html 404 (Not Found)`

It seems like express is trying to serve up the HTML file in the `template` folder inside the third-party directive, but I just want it to be a relative path to the HTML file without express being involved.