Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
angular-bootstrap-affix
Advanced tools
Pure AngularJS component replicating Twitter Bootstrap's Affix component behavior. The affix behavior enables dynamic pinning of a DOM element during page scrolling when specific conditions are met.
Install with bower, bower install angular-bootstrap-affix --save
Or download the production version or the development version.
In your web page:
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/angular-jquery/dist/angular-jquery.min.js"></script>
<script src="bower_components/angular-bootstrap-affix/dist/angular-bootstrap-affix.min.js"></script>
<script src="scripts/app.js"></script>
In your app.js:
angular.module('myApp', ['mgcrea.bootstrap.affix'])
To easily add affix behavior to any element, just add bs-affix
to the element you want to spy on. Then use offsets to define when to toggle the pinning of an element on and off.
Check Twitter Bootstrap's Affix docs.
<div class="iphone" bs-affix data-offset-top="200" data-offset-bottom="300">
<div class="iphone-content">
</div>
</div>
FAQs
bootstrap-affix
The npm package angular-bootstrap-affix receives a total of 340 weekly downloads. As such, angular-bootstrap-affix popularity was classified as not popular.
We found that angular-bootstrap-affix 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.