Montada comunicación con API, pero devuelve un objeto undefined

This commit is contained in:
2021-03-08 13:33:27 +01:00
parent 659783d23f
commit f1bf8ff75e
7 changed files with 56 additions and 18 deletions

View File

@@ -5,7 +5,14 @@
</ion-header>
<ion-content>
<span>Usuario: </span><input type="text" id="username">
<span>Contraseña: </span><input type="text" id="password">
<ion-button (click)="login()">
Login
</ion-button>
<div>
<div *ngIf="user">
{{user.username}}
</div>
</div>
</ion-content>