-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Description
Bug Report
Ionic Info
Run ionic info from a terminal/cmd prompt and paste the output below.
√ Gathering environment info - done!
Ionic:
ionic (Ionic CLI) : 4.1.2 (C:\Users\Toch\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.11
@angular-devkit/core : 0.7.5
@angular-devkit/schematics : 0.7.5
@angular/cli : 6.1.5
@ionic/ng-toolkit : 1.0.8
@ionic/schematics-angular : 1.0.6
Cordova:
cordova (Cordova CLI) : not installed
Cordova Platforms : not available
Cordova Plugins : not available
System:
NodeJS : v8.11.1 (C:\Program Files\nodejs\node.exe)
npm : 6.0.0
OS : Windows 10
Describe the Bug
I have a page with a slider, the slider is bound to an observable<any[]>, upon creation of the slider/ component it looks perfect, but once the observable emits a new value of smaller length, the slides do not update accordingly. There is some empty space at the end of the slides, as if the ion-slide is still there but just empty.
Steps to Reproduce
Steps to reproduce the behavior:
- create an ion-slides
- use ngFor to bind an array to each ion-slide
- Dynamically reduce the length of the array
- See error
Related Code
If you are able to illustrate the bug with an example, please provide a sample application via an online code collaborator such as StackBlitz, or GitHub.
Expected Behavior
The slides should exactly match the contents of the array, without any extra space
Additional Context
I noticed a similar problem with slides in ionicV3@3.9.2