I am in the process of updating my App from Ionic 6 to 7, and i am having some issues. I aim following this guide:
Set Up Swiper.js for Angular Slides [Example] | Ionic (ionicframework.com)
This is my code:
<ion-card>
<swiper-container class="task" pager="true">
<swiper-slide >
Step 1:<br>
Enable Bluetooth and Location on your device.
</swiper-slide >
<swiper-slide >
Step 2:<br>
Set the IoT WiFi device in Pairing Mode.
</swiper-slide >
<swiper-slide >
Step 3:<br>
Press "Connect" for avilable WiFi networks.
</swiper-slide >
<swiper-slide >
Step 4:<br>
Select the WiFi SSID or press "Scan" for an updated list.
</swiper-slide >
<swiper-slide >
Step 5:<br>
Set the WiFi security, default is WPA, for public networks select open.
</swiper-slide >
<swiper-slide >
Step 6:<br>
Set the WiFi password or keep it blank if it is not required.
</swiper-slide >
<swiper-slide >
Step 7:<br>
Press "Provision" to connect the IoT WiFi device to the selected WiFi network.
</swiper-slide >
</swiper-container>
</ion-card>
As mentioned, I have updated my app.module.ts with the following:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { RouteReuseStrategy } from '@angular/router';
import { IonicModule, IonicRouteStrategy } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { AppComponent } from './app.component';
import { AppRoutingModule } from './app-routing.module';
import { HttpClientModule } from '@angular/common/http';
import { CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
@NgModule({
schemas: [CUSTOM_ELEMENTS_SCHEMA],
declarations: [AppComponent],
//entryComponents: [],
imports: [
BrowserModule,
HttpClientModule,
IonicModule.forRoot(),
AppRoutingModule,
],
providers: [
StatusBar,
SplashScreen,
{ provide: RouteReuseStrategy, useClass: IonicRouteStrategy }
],
bootstrap: [AppComponent]
})
export class AppModule {}
Then app.components.ts
import { Component } from '@angular/core';
import { Platform } from '@ionic/angular';
import { SplashScreen } from '@ionic-native/splash-screen/ngx';
import { StatusBar } from '@ionic-native/status-bar/ngx';
import { Router } from '@angular/router';
import { Azureservice } from './azureservice.service';
import { App } from '@capacitor/app';
import { register } from 'swiper/element/bundle';
import { Plugins } from '@capacitor/core';
register();
@Component({
selector: 'app-root',
templateUrl: 'app.component.html'
})
export class AppComponent {
public appPages = [
{
title: 'My Account',
url: '/myaccount',
icon: 'home'
},
{
title: 'Notifications',
url: '/notification',
icon: 'notifications'
},
{
title: 'IoT Devices',
url: '/node-view',
icon: 'wifi'
},
];
public appPagesbottom = [
{
title: 'Contact us',
url: '/contactus',
icon: 'mail'
},
{
title: 'Logout',
url: '/logout',
icon: 'log-out'
},
];
Am i missing a step?