app.component.ts
this.storage.get('id').then((id) => {
this.resp = user_id;
})
this.pages = [
{ title: 'Home', component: HomePage },
{ title: 'Logout', component: Logout }
];
html
<ion-list [hidden]="!resp">
<button menuClose ion-item *ngFor="let q of pages " (click)="openPage(q)">
{{q.title}}
</button>
</ion-list>
when id is null then ion-list
will be hidden. Thanks in advanced.