Search code examples
angulartypescriptionic-frameworkangular-forms

Can't bind to 'FormGroup' since it isn't a known property of 'form' ----


So i've been looking through internet and everyone says the same thing and that is i have to add imports in appmodule.ts but i've added imports and i still have the same error.

The error is:

Can't bind to 'FormGroup' since it isn't a known property of 'form'. ("
        <ion-col>

            <form novalidate [ERROR ->][FormGroup]="form" (ngSubmit)="addUser(form)">

                <ion-title class="center">Registr"): ng:///AppModule/RegisterPage.html@8:33

Register.html (https://ghostbin.com/paste/8wn3q)

Register.ts (https://ghostbin.com/paste/3sxcz)

Appmodule.ts (https://ghostbin.com/paste/wgmxd)


Solution

  • [FormGroup] should be [formGroup].

    Notice the lowercase f.