This is a controller with a submit function:
$scope.submit = function(){
$http.post(\'/api/project\', $scope.project)
.success(function(data, stat
If you don't want to add gist files like it says in the correct solution you can add a "when" condition to your $httpBackend to ignore GET petitions of views like this:
$httpBackend.when("GET", function (url) {
// This condition works for my needs, but maybe you need to improve it
return url.indexOf(".tpl.html") !== -1;
}).passThrough();