By
Predicates for use with DebugElement
's query functions.
class By {
static all(): Predicate<DebugElement>
static css(selector: string): Predicate<DebugElement>
static directive(type: Type<any>): Predicate<DebugElement>
}
Static methods
Match all elements. |
ParametersThere are no parameters. Returns |
Example
|
Match elements by the given CSS selector. |
||
Parameters
Returns |
||
Example
|
Match elements that have the given directive present. |
||
Parameters
Returns |
||
Example
|