Ionic v2 submit infor pressing enter


#1

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}}

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