Experimental Class
Class Overview
class By { staticall() : Predicate<DebugElement> staticcss(selector: string) : Predicate<DebugElement> staticdirective(type: Type<any>) : Predicate<DebugElement> }
Class Description
Predicates for use with DebugElement
's query functions.
Static Members
all() : Predicate<DebugElement>
Match all elements.
debugElement.query(By.all());
css(selector: string) : Predicate<DebugElement>
Match elements by the given CSS selector.
debugElement.query(By.css('[attribute]'));
directive(type: Type<any>) : Predicate<DebugElement>
Match elements that have the given directive present.
debugElement.query(By.directive(MyDirective));
exported from @angular/platform-browser/index, defined in @angular/platform-browser/src/dom/debug/by.ts
Please login to continue.