Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71530

Ionic v2 submit infor pressing enter

$
0
0

@jotaeme93 wrote:

How do you create a text input that submits the info when the enter button is pressed? I've seen this solution:
<form (ngSubmit)="crearJugador()">
<ion-input class="inputNombresAndroid" type=submit placeholder="Nombre del jugador" [(ngModel)]="nombre" name="inputNombre">{{nombre}}</ion-input>
</form>

but it doesn't seem to work. Am I missing something?
Thanks

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71530

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>