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

A confusing error message, which may occur if you’re using a SubComponent (declared by SubComponentModule) in a ParentComponent (declared in a ParentComponentModule) and:

  • you forgot to add SubComponentModule in ParentComponentModule‘s imports (then it’s not accessible by SubComponent!)
  • you forgot to add the SubComponent in the
    SubComponentModule ‘s exports (then it’s not accessible outside the Component declared by this very module)