3
votes

Hey guys how do I make my lazeload module reconigze Forms Module importing on appModule??

https://stackblitz.com/edit/angular-lazy-loading-k1tven

I can't import forms on each lazy module or on shared module.

The formsModule is just a example of the problem, i using a 3 pt lib and all my lazy modules use it, but i just want load that lib on the init of application not on all chunks of lazy

1
There are console error in your stackblitz - Thaadikkaaran

1 Answers

0
votes

The FormsModule includes directives so you cannot make it work if you don't import it in every module that uses it. The only thing that can be used cross-module is the services