feat(slides): add IonicSwiper modules, deprecate ion-slides, and add link to migration (#23447)

This commit is contained in:
Liam DeBeasi
2021-06-11 12:56:32 -04:00
committed by GitHub
parent e1a96130eb
commit 623c84ab08
8 changed files with 283 additions and 2 deletions

View File

@ -136,6 +136,10 @@ export class Slides implements ComponentInterface {
*/
@Event() ionSlideTouchEnd!: EventEmitter<void>;
componentWillLoad() {
console.warn(`[Deprecation Warning]: ion-slides has been deprecated and will be removed in Ionic Framework v7.0. We recommend using the framework-specific integrations that Swiper.js provides, allowing for faster bug fixes and an improved developer experience. See https://ionicframework.com/docs/api/slides for more information including migration steps.`);
}
connectedCallback() {
// tslint:disable-next-line: strict-type-predicates
if (typeof MutationObserver !== 'undefined') {