Can’t bind to ‘ngModel’ since it isn’t a known property of ‘input’

Mehdi Benmoha
2 min readFeb 6, 2024
Photo by RealToughCandy.com: https://www.pexels.com/photo/person-holding-a-multicolored-sticker-with-text-11035396/

This is a very common error in Angular, and to fix it you simply need to import FormsModule in your module or directly in your standalone component starting from Angular 16+.

Here’s an example of basic angular app:

import { Component } from '@angular/core';
import { FormsModule } from '@angular/forms';
import {…

--

--