hideWhen="landscape" doesn't work


I’m using ionic 2.3.0 hideWhen
<ion-fab hideWhen="landscape" bottom right> <button ion-fab> <ion-icon name="add"></ion-icon> </button> </ion-fab>


Anyone find yet a solution to this?


If you don’t get a better answer, try setting the hideWhen for another element but the ion-fab, maybe wrap it inside a <div> or something. Does hideWhen="landscape" work for divs like in the example?


@Sujan12 I finally get it to work.But I downgraded to 2.1.0. On 2.3.0 & 2.2.0 it doesn’t work