I have installed angular material
I have created Material Module
I have imported this module in app module
But in any template in which I insert a control I always get the same error of "is not a known element:"
For example, here I need a date picker
Any idea, please?
Thanks
CodePudding user response:
You should avoid creating a dedicated material module for tree shaking.
But the issue is probably that you only imported the modules, and did not export them.
Try adding an exports
array to your material module.