Closed kounelios13 closed 4 years ago
I'm not familiar with with Angular. But this demonstration should be useful.
import { Component, AfterViewInit } from "@angular/core";
import Swiper = require("tiny-swiper");
@Component({
selector: "app-root",
templateUrl: "./app.component.html",
styleUrls: ["./app.component.css"]
})
export class AppComponent implements AfterViewInit {
title = "CodeSandbox";
swiper = null;
ngAfterViewInit() {
this.swiper = new Swiper("#swiper1", {
mousewheel: true
});
}
}
https://codesandbox.io/s/angular-5d87x
We have to ensure that HTMLElement is exist before TinySwiper initialize.
Describe the bug This is not a bug report . However I am wondering if it is possible to use this library with an angular application