Ionic2 - Labels not appearing for input -


i trying basic: label above input field. reason, not working. clue ?

<ion-header>    <ion-navbar>       <ion-title>          app       </ion-title>   </ion-navbar> </ion-header>  <ion-content>     <ion-item no-lines>      <ion-label stacked>first name</ion-label>      <ion-input></ion-input>     </ion-item>    <ion-item no-lines>       <ion-label stacked>last name</ion-label>       <ion-input type="text" placeholder="last name"></ion-input>    </ion-item> </ion-content>  <ion-footer>   <div (click)="gohome()">cancel</div>   <div (click)="save()">update</div> </ion-footer> 

as can see in docs change code <ion-label stacked> , should appear on top of ion-input


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -