dimanche 29 mars 2015

angular html5 mode allow file types with node

I have an angular app in html5 mode, and a node.js express back-end using the following snippet I can redirect everything back to the route:



app.use('/*', function(req, res){
res.sendFile(__dirname + '/public/index.html');
});


But because of this my ng-include will no longer work:



ng-include="'app/img/svg/star.svg'"


How can I allow certain file types that say end in '.svg' to still be loaded?


Aucun commentaire:

Enregistrer un commentaire