Predicates for use with DebugElement's query functions.
DebugElement
class By { static all(): Predicate<DebugNode>; static css(selector: string): Predicate<DebugElement>; static directive(type: Type<any>): Predicate<DebugNode>;}
Predicate<DebugNode>
Match all nodes.
debugElement.query(By.all());
Predicate<DebugElement>
Match elements by the given CSS selector.
string
debugElement.query(By.css('[attribute]'));
Match nodes that have the given directive present.
Type<any>
debugElement.query(By.directive(MyDirective));