0 votes
in Angular by
What happens if browserModule used in feature module?

1 Answer

0 votes
by

If you do import BrowserModule into a lazy loaded feature module, Angular returns an error telling you to use CommonModule instead. Because BrowserModule’s providers are for the entire app so it should only be in the root module, not in feature module. Whereas Feature modules only need the common directives in CommonModule.

ScreenShot

...