Hi
I need to show an element only if the user is logged in (which means that the user should have an id stored in his device)
here is my html component :
ion-card-title ng-if="id != null">write a review</ion-card-title>
<form [formGroup]="reviewForm" (submit)="writeReview($event)">
<ion-list>
<ion-item>
<ion-input type="text" formControlName="name" placeholder="name"></ion-input>
</ion-item>
<ion-item>
<ion-input type="text" formControlName="review" placeholder="review"></ion-input>
</ion-item>
<ion-item>
<ion-label>rating</ion-label>
<ion-select formControlName="rate">
<ion-option value="5">5</ion-option>
<ion-option value="4">4</ion-option>
<ion-option value="3">3</ion-option>
<ion-option value="2">2</ion-option>
<ion-option value="1">1</ion-option>
</ion-select>
</ion-item>
</ion-list>
<button ion-button color="secondary" block type="submit" >add your review</button><br />
</form>
</ion-card-content>
</ion-card>