feat(renderer): use a comment instead of an element when stamping out <template> elements
Closes #4805 Closes #5227
This commit is contained in:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user