
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
angular-owl-carousel
Advanced tools
An angular (2 or 4) wrapper for jquery owl carousel library with dynamic carousel item change detection
This Library requires jquery to be installed globally
For commonJs based application load jquery using script loader or use link tag in html file
Install script-loader if you don't have already
npm install script-loader
and in vendor.ts
require('script!jquery');
OR
<script type="application/javascript" src="path-to-jquery.js"></script>
If using angular-cli
Add this to angular cli-json file
"scripts": [
"../node_modules/jquery/dist/jquery.js"
]
To install this library, run:
$ npm install angular-owl-carousel --save
and then from your Angular AppModule:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import your library
import { OwlModule } from 'angular-owl-carousel';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
OwlModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
Once your library is imported, you can use OwlCarousel component very easily in your Angular application:
<!-- You can use owl-carousel selector to include its component -->
<owl-carousel
[options]="{items: 3, dots: false, navigation: false}"
<!-- If images array is dynamically changing pass this array to [items] input -->
[items]="images"
<!-- classes to be attached along with owl-carousel class -->
[carouselClasses]="['owl-theme', 'row', 'sliding']">
<div class="item" *ngFor="let image of images;let i = index">
<div class="thumbnail-image" [ngStyle]="{'background': 'url('abc.jpg')no-repeat scroll center center / 80px 80px'}"></div>
</div>
</owl-carousel>
To go to next slide. Animation time can be passed as options array. E.g. this.owlElement.next([200]). (200ms animation time).
To go to previous slide. (arguments are similar)
To go to nth slide. (arguments are similar)
To trigger any jquery owl carousel's action. options can be passed accordingly.
After doing some changes in owl component's options this function can be used to refresh owl component
<owl-carousel #owlElement
import {OwlCarousel} from 'angular-owl-carousel';
export class HomeComponent {
@ViewChild('owlElement') owlElement: OwlCarousel
fun() {
this.owlElement.next([200])
//duration 200ms
}
}
This project is licensed under the terms of the MIT license.
FAQs
An angular (2 or 4) wrapper for jquery owl carousel library with dynamic carousel item change detection
The npm package angular-owl-carousel receives a total of 90 weekly downloads. As such, angular-owl-carousel popularity was classified as not popular.
We found that angular-owl-carousel 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.