New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

ngx-breakpoints

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-breakpoints

Directives with breakpoint conditions

latest
Source
npmnpm
Version
12.0.1
Version published
Maintainers
1
Created
Source

NgxBreakpoints

Breakpoint utilities

Installation

NgxBreakpoints requires @angular/cdk

npm install @angular/cdk
npm install ngx-breakpoints

Usage

import { NgxBreakpointConfig, NgxBreakpointsModule } from 'ngx-breakpoints';

const config: NgxBreakpointConfig = {
  breakpoints: {
    xs: '0',
    sm: '576px',
    md: '768px',
    lg: '992px',
    xl: '1200px',
    xxl: '1400px',
  },
  mobileBreakpoint: 'lg',
};

@NgModule({
  imports: [NgxBreakpointsModule.forRoot(config)],
})
export class AppModule {}
<div [desktopAttr]="[['id', '1']]">Desktop Attr</div>
<div desktopClass="one two">Desktop Class</div>
<div [desktopClass]="['one', 'two']">Desktop Class</div>
<div *desktopOnly>Desktop Only</div>
<div [mobileAttr]="[['id', '1']]">Mobile Attr</div>
<div mobileClass="one two">Mobile Class</div>
<div [mobileClass]="['one', 'two']">Mobile Class</div>
<div *mobileOnly>Mobile Only</div>
<div>
  <div desktopMaxWidth="420px" style="background-color: black; color: white;">Desktop Max Width</div>
</div>
<div *greaterOnly="'lg'"> Greater LG</div>
<div *lowerOnly="'lg'">Lower LG</div>

Keywords

angular

FAQs

Package last updated on 18 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts