• Overview
@angular/platform-browser

By

Class

Predicates for use with DebugElement's query functions.

  
    class By {}
  
  

Match all nodes.

Usage notes

Example

{@example platform-browser/dom/debug/ts/by/by.ts region='by_all'}

Match elements by the given CSS selector.

@paramselectorstring
Usage notes

Example

{@example platform-browser/dom/debug/ts/by/by.ts region='by_css'}

Match nodes that have the given directive present.

@paramtypeType<any>
Usage notes

Example

{@example platform-browser/dom/debug/ts/by/by.ts region='by_directive'}

Jump to details