xxxxxxxxxx
// In Angular:
<input (keyup)="onKey($event)">
// Component:
onKey(event) {const inputValue = event.target.value;}
xxxxxxxxxx
<form (submit)="onSubmit()">
<input [(ngModel)]="playerName">
</form>
let playerName: string;
onSubmit() {
return this.playerName;
}
xxxxxxxxxx
const type = (<HTMLInputElement>document.getElementById('type')).value;
#https://www.fiverr.com/tamerjarrar