
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
angular-responsive-breakpoints
Advanced tools
Lightweight angular service, providing a customizable set of screen breakpoints
Angular Responsive Breakpoints is a small lightweight angular service, providing a customizable set of screen breakpoints.
NPM
npm install --save angular-responsive-breakpoints
angular.module('myApp', ['ngResponsiveBreakpoints']);
angular.module('myApp').controller('MyController', ['$scope','responsiveBreakpoints', MyController]);
function MyController($scope, responsiveBreakpoints) {
$scope.screen = responsiveBreakpoints;
}
<div ng-show="screen.md"></div>
The service watches your window size and sets its keys by the following rules:
responsiveBreakpoints.xs is true if window.innerWidth <= 600px responsiveBreakpoints.md is true if window.innerWidth <= 1280px and window.innerWidth > 960px responsiveBreakpoints.smGt is true if window.innerWidth > 960px
By default the breakpoint set is a collection in a format of:
[
{
code: 'xs',
value: 600
},
{
code: 'sm',
value: 960
},
{
code: 'md',
value: 1280
},
{
code: 'lg',
value: 1920
}
]
Default postfix is 'Gt'
In order to override it inject 'responsiveBreakpointsProvider' in your config
angular.module('myApp').config(['responsiveBreakpointsProvider', config]);
function config(responsiveBreakpointsProvider) {
responsiveBreakpointsProvider.setResponsiveBreakpoints(/* pass your collection of breakpoints in ascending order here */);
responsiveBreakpointsProvider.setGreaterPostfix(/* pass your postfix here */);
}
Since version 0.2.0 bower package is no longer maintained. You still can install an older verion from bower with
bower install --save angular-responsive-breakpoints
FAQs
Lightweight angular service, providing a customizable set of screen breakpoints
The npm package angular-responsive-breakpoints receives a total of 7 weekly downloads. As such, angular-responsive-breakpoints popularity was classified as not popular.
We found that angular-responsive-breakpoints demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.