Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Commit

Permalink
allow request *.html to angular load html templates
Browse files Browse the repository at this point in the history
  • Loading branch information
erkobridee committed Oct 11, 2013
1 parent afa4cd9 commit 9787385
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ngMockBackend/angular-mocks-backend.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@
};

ClassDef.prototype.config = function(angular, httpBackend) {
configAllow(httpBackend);
configResources(angular, httpBackend);
};


var configAllow = function(httpBackend) {
// Allow get html to load templates
httpBackend.when('GET', regexpUrl(/.html$/)).passThrough();
};

//--- mocked resources

var resources = [];
Expand Down

0 comments on commit 9787385

Please sign in to comment.