Ion-hide-when not working ionicv4

ion-hide-when hiding content in every size, platform. not working.

1 Like

In Ionic 4 you can use ion-hide as well as add breakpoints to determine when to hide based on the screen width.

Be sure to have imported the proper css file to your global.css

@import '~@ionic/angular/css/display.css';

If you check the ionic v4 breaking changes, it says the show/hide-when directive was removed in favor of media queries

Ionic v4 breaking changes