mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 10:04:08 +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;
|
|
});
|
|
}
|