I am writing an AngularJS directive that uses a templateURL i.e.
m.directive('mySavingIndicator', function () {
return {
restrict: 'E',
templateUrl: '/views/templates/savingindicator.html'
};
});
I have created a plain old .html file within the views/templates directory but everytime I run this code MVC throws a null reference exception like its trying to find a controller for it (which doesnt exist). How do I stop MVC trying to treat this as a cshtml file, or how do I make it treat it as a cshtml file but not require a controller? It seems wasteful writing a controller just for these small templates?