
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
org.webjars.npm:github-com-revolunet-angular-carousel
Advanced tools
An AngularJS carousel implementation optimised for mobile devices.
Demo : http://revolunet.github.io/angular-carousel
Comments and contributions welcome :)
Proudly brought to you by the @revolunet team.
bower install angular-carousel
npm install angular-carousel
If you don't use NPM or Bower, just download files from the github repo
angular-touch.js
and angular-carousel.js
to your code:<script src="angular.js"></script>
<script src="angular-touch.js"></script>
<script src="angular-carousel.js"></script>
var angular = require('angular');
var ngTouch = require('angular-touch');
var carousel = require('angular-carousel');
angular-carousel.css
to your code:<link href="angular-carousel.css" rel="stylesheet" type="text/css" />
angular-carousel
module in your application.angular.module('MyApp', ['angular-carousel']);
rn-carousel
attribute to your <ul>
block and your <li>
's become magically swipable ;)<ul rn-carousel class="image">
<li ng-repeat="image in sportImages">
<div class="layer">{{ image }}</div>
</li>
</ul>
rn-carousel
without ng-repeat ;)<ul rn-carousel class="image">
<li>slide #1</li>
<li>slide #2</li>
<li>slide #3</li>
</ul>
rn-carousel-index
two way binding integer to control the carousel position (0-indexed)rn-carousel-buffered
add this attribute to enable the carousel buffering, good to minimize the DOM (5 slides)rn-carousel-controls
add this attribute to enable builtin prev/next buttons (you can override by CSS)rn-carousel-auto-slide
add this attribute to make the carousel slide automatically after given seconds (default=3)rn-carousel-transition
: transition type, can be one of slide, zoom, hexagon, fadeAndSlide, none
. (default=slide)rn-carousel-locked
: two way binding boolean that lock/unlock the carouselrn-carousel-deep-watch
: Deep watch the collection which enable to dynamically add slides at beginning without corrupting positionrn-carousel-easing
: add this attritube to specify a formula for easing, these can be found in the shifty
library (default=easeIn)rn-carousel-duration
: add this attribute to set the duration of the transition (default=300)rn-carousel-controls-allow-loop
: add this attribute to allow looping through slides from prev/next controlsYou can add position indicators by adding this directive where you want :
<div rn-carousel-indicators ng-if="slides.length > 1" slides="slides" rn-carousel-index="carouselIndex"></div>
slides
is the same collection you use in the carousel ng-repeatcarouselIndex
is the same index you've defined for the carouselAs AngularJS itself, this module is released under the permissive MIT license. Your contributions are always welcome.
FAQs
WebJar for angular-carousel
We found that org.webjars.npm:github-com-revolunet-angular-carousel demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.