Gathering detailed insights and metrics for ng-if-bootstrap-grid
Gathering detailed insights and metrics for ng-if-bootstrap-grid
Gathering detailed insights and metrics for ng-if-bootstrap-grid
Gathering detailed insights and metrics for ng-if-bootstrap-grid
Angular directives, including or excluding HTML-elements, based on currently active Bootstrap grid: xs, sm, md, lg
npm install ng-if-bootstrap-grid
Typescript
Module System
Node Version
NPM Version
69.3
Supply Chain
78.4
Quality
75.2
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
31,408
Last Day
2
Last Week
47
Last Month
193
Last Year
1,727
MIT License
2 Stars
6 Commits
1 Forks
1 Watchers
2 Branches
1 Contributors
Updated on Apr 19, 2016
Minified
Minified + Gzipped
Latest Version
0.1.0
Package Id
ng-if-bootstrap-grid@0.1.0
Size
5.20 kB
NPM Version
2.10.1
Node Version
0.12.4
Cumulative downloads
Total Downloads
Last Day
-71.4%
2
Compared to previous day
Last Week
42.4%
47
Compared to previous week
Last Month
26.1%
193
Compared to previous month
Last Year
-1.8%
1,727
Compared to previous year
No dependencies detected.
Angular directives, including or excluding HTML-elements, based on currently active Bootstrap grid: xs, sm, md, lg. Allowing for a reduction of watcherts.
ng-if
is used.npm i ng-if-bootstrap-grid --save
AngularJS
1angular.module('myApp', [require('ng-if-bootstrap-grid').name]);
HTML
1<h1 ng-if-bootstrap-grid="md,lg">md,lg</h1><!-- md and lg are or'ed --> 2<h1 ng-if-bootstrap-grid="lg">lg</h1> 3<h1 ng-if-bootstrap-grid="md">md</h1> 4<h1 ng-if-bootstrap-grid="sm">sm</h1> 5<h1 ng-if-bootstrap-grid="xs">xs</h1> 6 7<h1 ng-if-not-bootstrap-grid="lg">not-lg</h1> 8<h1 ng-if-not-bootstrap-grid="md">not-md</h1> 9<h1 ng-if-not-bootstrap-grid="sm">not-sm</h1> 10<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.
The injection does not take place in the compile
function of the directive, as this (misteriously) breaks the code.
MIT
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-05-05
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More