By
Predicates for use with DebugElement
's query functions.
class By {
static all(): Predicate<DebugNode>
static css(selector: string): Predicate<DebugElement>
static directive(type: Type<any>): Predicate<DebugNode>
}
Static methods
all() |
---|
Match all nodes. |
Usage NotesExample
|
css() |
---|
Match elements by the given CSS selector. |
Usage NotesExample
|
directive() |
---|
Match nodes that have the given directive present. |
Usage NotesExample
|