refactor(core): move Meta methods that only have one version from DomAdapter (#32408)
PR Close #32408
This commit is contained in:

committed by
Miško Hevery

parent
1a7c79746d
commit
89434e09c2
@ -35,11 +35,11 @@ class SomeComponent {
|
||||
const doc = TestBed.get(DOCUMENT);
|
||||
const rootEl =
|
||||
<HTMLElement>getContent(createTemplate(`<${selector}></${selector}>`)).firstChild;
|
||||
const oldRoots = getDOM().querySelectorAll(doc, selector);
|
||||
const oldRoots = doc.querySelectorAll(selector);
|
||||
for (let i = 0; i < oldRoots.length; i++) {
|
||||
getDOM().remove(oldRoots[i]);
|
||||
}
|
||||
getDOM().appendChild(doc.body, rootEl);
|
||||
doc.body.appendChild(rootEl);
|
||||
}
|
||||
|
||||
type CreateModuleOptions =
|
||||
|
Reference in New Issue
Block a user