Coder Social home page Coder Social logo

Comments (5)

amitgaur208 avatar amitgaur208 commented on July 16, 2024 3

This issue not solved for me..

from ngx-owl-carousel.

rainstormza avatar rainstormza commented on July 16, 2024

2wkpl2n

but there is no carousel

my code

html

<owl-carousel [options]="{items: 3, dots: false, navigation: false}" [items]="images" [carouselClasses]="['owl-theme', 'row', 'sliding']">
<div class="item" *ngFor="let image of images;let i = index">
<div class="thumbnail-image" [ngStyle]="">

typescript

import { Component, ViewChild } from '@angular/core';
import {OwlCarousel} from 'ng2-owl-carousel';

@component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
title = 'app works!';
@ViewChild('owlElement') owlElement: OwlCarousel

images: Array = [0,1,2,3,4,5,6,7,8,9,10];

fun() {
this.owlElement.next([200])
//duration 200ms
}
}

from ngx-owl-carousel.

mujtaba01 avatar mujtaba01 commented on July 16, 2024

Update scripts key in your angular-cli.json to include jQuery

"scripts": [
"../node_modules/jquery/dist/jquery.js"
]

http://ayoubgdah.com/blog/using-jquery-with-angular-2-angular-cli/

from ngx-owl-carousel.

rainstormza avatar rainstormza commented on July 16, 2024

1488276937209

error was gone but data doesn't look like what I expect
Is this about owl carousel css file ?

from ngx-owl-carousel.

mujtaba01 avatar mujtaba01 commented on July 16, 2024

Yes you need to include owl carousel css file.

from ngx-owl-carousel.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.