diff --git a/lib/transforms/inlineAngularJsTemplates.js b/lib/transforms/inlineAngularJsTemplates.js
index <HASH>..<HASH> 100644
--- a/lib/transforms/inlineAngularJsTemplates.js
+++ b/lib/transforms/inlineAngularJsTemplates.js
@@ -26,6 +26,7 @@ module.exports = function (queryObj) {
                     relationToInline.detach();
                 } else {
                     id = relationToInline.href;
+                    relationToInline.remove();
                 }
                 if (!alreadyInlinedById[id]) {
                     var node = document.createElement('script');
inlineAngularJsTemplate: Remove the existing JavaScriptAngularJsTemplate relations. Prevents the templates from getting cloned.