i cannot import FormsModule in task.component.ts file under task folder in angular 18.0.4...

Discussão em 'Angular' iniciado por Mani, Novembro 5, 2024.

  1. Mani

    Mani Guest

    i cannot import FormsModule in task.component.ts file under task folder .Due to unable to solve error as "Can't bind to 'ngModel' since it isn't a known property of 'input'.ngtsc(-998002)" .My code is <input type="text" class="form-control" [(ngModel)]="newTask.description"> in task.component.html file.Pls help to resolve this error.

    [​IMG]

    Continue reading...

Compartilhe esta Página