Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
ng2-carouselamos
Advanced tools
Ng2-carouselamos is a simple carousel/slider which just use css transitions to do the work
npm i ng2-carouselamos --save
And then, in your app.module.ts :
import { Ng2CarouselamosModule } from 'ng2-carouselamos';
...
@NgModule({
...
imports: [
...
Ng2CarouselamosModule
],
...
})
ng2-carouselamos
- attribute to apply carousel
startAt
- initial slide to render. Defaults to 0.
width
- size of window to show
items
- objects array that belong to the carousel
$item
- template for each item
$prev
- template for previous button
$next
- template for next button
onSelectedItem($event)
- event triggered when snap element. $event is an object containing the current item and the current index - { item: ..., index: ... }
Inside $item
template we have access to the follow:
let-item
- the current element of the objects array
let-i="index"
- current index
<div
ng2-carouselamos
[width]="500"
[items]="[
{ name: 'Alice'},
{ name: 'Bob'},
{ name: 'John Doe'},
{ name: 'Jane Doe'}
]"
[$item]="itemTemplate"
[$prev]="prevTemplate"
[$next]="nextTemplate"
(onSelectedItem)="selectedItem = $event.item; selectedIndex = $event.index"
></div>
<div>
Current item selected <br />
{{ selectedIndex }} - {{ selectedItem }}
</div>
<ng-template #prevTemplate>
<span>Previous</span>
</ng-template>
<ng-template #nextTemplate>
<span>next</span>
</ng-template>
<ng-template let-item let-i="index" #itemTemplate>
<div style="min-width: 200px">
<b *ngIf="i === selectedIndex">{{i}}. {{item.name}}</b>
<span *ngIf="i !== selectedIndex">{{i}}. {{item.name}}</span>
</div>
</ng-template>
Based on @angular/cli(https://angular.io/guide/creating-libraries)
FAQs
This is a simple slider/carousel for angular 2+
The npm package ng2-carouselamos receives a total of 286 weekly downloads. As such, ng2-carouselamos popularity was classified as not popular.
We found that ng2-carouselamos 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
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.