mirror of
https://github.com/Redocly/redoc.git
synced 2025-02-07 13:30:33 +03:00
12 lines
356 B
JavaScript
12 lines
356 B
JavaScript
|
'use strict';
|
||
|
|
||
|
import {BrowserDomAdapter} from 'angular2/platform/browser';
|
||
|
BrowserDomAdapter.makeCurrent();
|
||
|
|
||
|
/** Gets a child DebugElement by tag name. */
|
||
|
export function getChildDebugElement(parent, tagName) {
|
||
|
return parent.query(debugEl => {
|
||
|
return debugEl.nativeElement.tagName && debugEl.nativeElement.tagName.toLowerCase() === tagName;
|
||
|
});
|
||
|
}
|