angular - How to remove <ion-footer> in Ionic 2 -




i'm trying hide if clicked on search button there small problem couldn't solve it.

for example part of footer html code.

note1: "search" normal variable defined in first of .ts code value "false".

note2: if click button, there function change "true".

<ion-footer *ngif="!search">   <ion-toolbar>     <ion-input placeholder="type thing" [(ngmodel)]="variables.chattext" (click)="autoscroll()"></ion-input>     <ion-buttons end>       <button ion-button icon-right color="royal" [disabled]="!variables.chattext" (click)="sendchat(variables.chattext)" >send<ion-icon name="send"></ion-icon>       </button>     </ion-buttons>   </ion-toolbar> </ion-footer> 

when want hide it, page shown such picture. how can solve problem ?

enter image description here

just can see in the docs:

if height of ion-header, ion-footer or ion-tabbar changes dynamically, content.resize() has called in order update layout of content.

class yourpage {   @viewchild(content) content: content;   search: boolean = false;    toggletoolbar() {     // toggle footer     this.search = !this.search;      // update size of content     this.content.resize();   } } 




wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -