refactor(upgrade): use shared code in downgradeNg2Component()
(#14037)
This unified the implementations of dynamic's `downgradeNg2Component()` and static's `downgradeComponent()`.
This commit is contained in:

committed by
Miško Hevery

parent
1367cd9569
commit
ea63676970
@ -7,3 +7,9 @@
|
||||
*/
|
||||
|
||||
export * from '../common/test_helpers';
|
||||
|
||||
export function nodes(html: string) {
|
||||
const div = document.createElement('div');
|
||||
div.innerHTML = html.trim();
|
||||
return Array.prototype.slice.call(div.childNodes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user