feat(renderer): use a comment instead of an element when stamping out <template> elements

Closes #4805


Closes #5227
This commit is contained in:
Tobias Bosch
2015-11-10 15:53:57 -08:00
parent 406ace9b25
commit bb9cfe6f36
4 changed files with 16 additions and 5 deletions
@@ -19,7 +19,7 @@ var _allViewsById = new Map<number, AppView>();
var _nextId = 0;
function _setElementId(element, indices: number[]) {
if (isPresent(element)) {
if (isPresent(element) && DOM.isElementNode(element)) {
DOM.setData(element, NG_ID_PROPERTY, indices.join(NG_ID_SEPARATOR));
}
}