【发布时间】:2019-04-04 09:33:22
【问题描述】:
我正在使用 Ionic 4 应用程序,我已在我的应用程序中导入幻灯片,但它显示错误。
这是我的intro.page.ts:
import { Slides } from '@ionic/angular';
@Component({
selector: 'app-intro',
templateUrl: './intro.page.html',
styleUrls: ['./intro.page.scss'],
})
export class IntroPage implements OnInit {
@ViewChild('slides') slides: Slides;
constructor(private storage: Storage, private router: Router) { }
ngOnInit() {
}
next() {
this.slides.slideNext();
}
}
错误:
模块 '"../../../../../Users/challengesnew/node_modules/@ionic/angular/dist/core"' 没有导出的成员“幻灯片”。
非常感谢任何帮助。
【问题讨论】:
标签: angular ionic-framework ionic4