Answers for "keydown.enter angular"

4

angular input press enter

<form [formGroup]="myForm">
    <div formArrayName="things">
        <div *ngFor="let thing of things.controls; let i=index">
            <label [for]="'input' + i">Thing {{i}}:</label>
            <input type="text" [formControlName]="i" [name]="'input' + i" [id]="'input' + i" (keyup.enter)=""  />
        </div>
    </div>
</form>
Posted by: Guest on July-17-2020
4

angular keydown

<input (keydown)="onKeydown($event)">
Posted by: Guest on October-26-2020

Browse Popular Code Answers by Language