Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
ng-if-bootstrap-grid
Advanced tools
Angular directives, including or excluding HTML-elements, based on currently active Bootstrap grid: xs, sm, md, lg
Angular directives, including or excluding HTML-elements, based on currently active Bootstrap grid: xs, sm, md, lg.
npm i ng-if-bootstrap-grid --save
AngularJS
angular.module('myApp',
[require('ng-if-bootstrap-grid').name]
);
HTML
<h1 ng-if-bootstrap-grid="md,lg">md,lg</h1><!-- md and lg are or'ed -->
<h1 ng-if-bootstrap-grid="lg">lg</h1>
<h1 ng-if-bootstrap-grid="md">md</h1>
<h1 ng-if-bootstrap-grid="sm">sm</h1>
<h1 ng-if-bootstrap-grid="xs">xs</h1>
<h1 ng-if-not-bootstrap-grid="lg">not-lg</h1>
<h1 ng-if-not-bootstrap-grid="md">not-md</h1>
<h1 ng-if-not-bootstrap-grid="sm">not-sm</h1>
<h1 ng-if-not-bootstrap-grid="xs">not-xs</h1>
Add the ng-if-bootstrap-grid
or ng-if-not-bootstrap-grid
attribute to any HTML-element that should be excluded or included, based on the currently active bootstrap grid class.
Works like ng-if
: the excluded elements (and their children) will not get rendered. Thus limiting the watcher count. The bootstrap classes (col-xs-*
) just hide elemens, but they still get rendered.
The attributes take the grid class as a parameter. More than one grid class can be set as parameter value, by separating them with commas or spaces.
Extensive cross-browser testing
MIT
FAQs
Angular directives, including or excluding HTML-elements, based on currently active Bootstrap grid: xs, sm, md, lg
The npm package ng-if-bootstrap-grid receives a total of 30 weekly downloads. As such, ng-if-bootstrap-grid popularity was classified as not popular.
We found that ng-if-bootstrap-grid 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.