$q
$q<
T>(selector):T
Defined in: core/dom/query.ts:10
Returns the first element matching a selector.
Type Parameters
Section titled “Type Parameters”T extends Element = HTMLElement
Parameters
Section titled “Parameters”selector
Section titled “selector”string
CSS selector.
Returns
Section titled “Returns”T
Throws
Section titled “Throws”If nothing matches.