fb_pixel

Angular 6 and read input

Development | Web Development
Description
Hi, how i want read input in form. But only one input in formular. I use {NgForm} and read complet form,. Is something easier? Thanks 
Attachments
No attachments
Info
Description
<form (submit)="onSubmit()">
   <input [(ngModel)]="playerName">
</form>

let playerName: string;
onSubmit() {
  return this.playerName;
}

on August 09th, 2018 (9:16 am)
All coments
Super, it works .. Thank you
on December 15th, 2018 (11:12 pm)