angular get input value code example
Example 1: angular input value
<form (submit)="onSubmit()">
<input [(ngModel)]="playerName">
</form>
let playerName: string;
onSubmit() {
return this.playerName;
}
Example 2: get input value angular
const type = (<HTMLInputElement>document.getElementById('type')).value;
#https://www.fiverr.com/tamerjarrar