
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
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 2 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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.