ruddnisrus
ruddnisrus

Reputation: 245

Can standalone components handle nested ngModules?

How to correctly handle below scenario ?

StandaloneComponent ( needs for example ReactiveFormsModule )
ModuleA
ModuleB ( imports ReactiveFormsModule)

If I got above structure reactive forms module is not recognized in standalone… how it should looks like ?

Upvotes: 0

Views: 68

Answers (1)

Matthieu Riegler
Matthieu Riegler

Reputation: 55669

Standalone component require explicit imports.

If you component want to use a directive from ReactiveFormsModule you'll need to import it. There is no transitive import in the case standalone.

Upvotes: 0

Related Questions