Nativescript ngx幻灯片:无法转到下一张或上一张幻灯片
我无法使用Nativescript--ngx幻灯片插件导航到下一张或上一张幻灯片 是否未启用此功能?如果是,那么如何调用这些方法 当我使用Nativescript ngx幻灯片:无法转到下一张或上一张幻灯片,nativescript,Nativescript,我无法使用Nativescript--ngx幻灯片插件导航到下一张或上一张幻灯片 是否未启用此功能?如果是,那么如何调用这些方法 当我使用 @ViewChild("slides") slides: SlidesComponent 然后在 NgAfterViewInit let slidesComponent = <SlidesComponent>this.slides.nativeElement NgAfterViewInit让slidesComponent=this.sli
@ViewChild("slides") slides: SlidesComponent
然后在
NgAfterViewInit let slidesComponent = <SlidesComponent>this.slides.nativeElement
NgAfterViewInit让slidesComponent=this.slides.nativeElement
我得到一个未定义的错误
有什么建议吗?我想,用SlidesComponent代替ElementRef:
import { SlidesComponent } from "nativescript-ngx-slides";
...
然后
@ViewChild("slideContainer") slideContainer: SlidesComponent;
然后调用nextSlide()方法:
干杯我想,用SlidesComponent代替ElementRef:
import { SlidesComponent } from "nativescript-ngx-slides";
...
然后
@ViewChild("slideContainer") slideContainer: SlidesComponent;
然后调用nextSlide()方法:
干杯