Skip to content

Instantly share code, notes, and snippets.

View CharlesHamel's full-sized avatar
🎯
Focusing

Charles Hamel CharlesHamel

🎯
Focusing
View GitHub Profile
angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;