Ion-item-sliding options doesn't work

util.js:60 Native: tried calling StatusBar.styleDefault, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
cordovaWarn @ util.js:60
util.js:60 Native: tried calling SplashScreen.hide, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
cordovaWarn @ util.js:60

I have error message on the console as above. I added sliding options for deleting. The code is the below.

<ion-list [reorder]=“reorderIsEnabled” (ionItemReorder)=“reorderItems($event)”>
<ion-item-sliding *ngFor=“let todo of todos; let todoIndex = index” (ionSwipe)=“deleteTodo(todoIndex)”>

{{todo}}



<button ion-button color=“danger” (click)=“deleteTodo(todoIndex)”>
Delete



<button ion-fab (click)=“openTodoAlert()”>

I have no idea why I’ve got the error message on the top. Please help me out. I have been spent 5 hours for this.
Thank you in advance.

Pleas format your code with the < / > brackets so it’s easier to read. Did you see the top errors in the browser or on your device when debugging it? If it’s the first, the warnings are there because you’re running in the browser and not on your device. The warnings have no effect on your app whatsoever if you run it in the browser.