ngx-mq
    Preparing search index...

    Function down

    • Tracks whether the viewport width is below a breakpoint.

      Builds a (max-width: <bp - epsilon>px) query. The upper bound is exclusive: a small epsilon is subtracted so down('md') and up('md') never overlap.

      Parameters

      Returns Signal<boolean>

      A Signal<boolean> that is true while the viewport width is < the breakpoint.

      Must be called within an Angular injection context.

      export class NavComponent {
      readonly isMobile = down('md');
      }

      provideBreakpointEpsilon to tune the exclusive-bound epsilon.