Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
import { Component, NgZone } from '@angular/core';
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
export class AppComponent {
title = 'app';
owlCarouselOptions: Object; // 宣告 Owl Carousel 的 Options
constructor(private _zone: NgZone) {
this.owlCarouselOptions = { // 設定 Owl Carousel Options
items: 5,
dots: true,
navigation: true,
nav: true,
autoplay: true,
autoplayTimeout: 3000,
autoplayHoverPause: false,
loop: true,
onTranslate: (e) => => console.log("is translated, the page index is: ",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.