DEV Community

Discussion on: Tutorial: Aplicaciones de Angular CLI con bootstrap

Collapse
 
excepticons profile image
excepticons

Hi.
I'm getting this compiler error in step of Login component when paste the code html:

Error: src/app/pages/login/login.component.html:11:19 - error NG8002: Can't bind to 'formGroup' since it isn't a known property of 'form'.
11


~~~~~~~~~~~~~~~~~~
  src/app/pages/login/login.component.ts:7:16
    7   templateUrl: './login.component.html',
                     ~~~~~~~~~~~~~~~~~~~~~~~~
    Error occurs in the template of component LoginComponent.

Can you help me?

Thks.

Collapse
 
santi72alc profile image
Santiago San Román • Edited

I had the same problem...
I fixed it modifying 'login.module.ts'
add the next import
import { ReactiveFormsModule } from '@angular/forms';

and the problem was fixed for me.
Good luck!!