Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/275.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Nativescript ngx幻灯片:无法转到下一张或上一张幻灯片_Nativescript - Fatal编程技术网

Nativescript ngx幻灯片:无法转到下一张或上一张幻灯片

Nativescript ngx幻灯片:无法转到下一张或上一张幻灯片,nativescript,Nativescript,我无法使用Nativescript--ngx幻灯片插件导航到下一张或上一张幻灯片 是否未启用此功能?如果是,那么如何调用这些方法 当我使用 @ViewChild("slides") slides: SlidesComponent 然后在 NgAfterViewInit let slidesComponent = <SlidesComponent>this.slides.nativeElement NgAfterViewInit让slidesComponent=this.sli

我无法使用Nativescript--ngx幻灯片插件导航到下一张或上一张幻灯片

是否未启用此功能?如果是,那么如何调用这些方法

当我使用

@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()方法:

干杯