I have looked into different examples of using angular 6 elements and found it quite impressive. All of them are describing approach when you just connect your custom component to AppModule (root module). I want to keep my custom components in a separate module (feature module). Every time I am trying to achieve this, I receive next error -
Uncaught TypeError: Failed to construct 'HTMLElement': Please use the 'new' operator, this DOM object constructor cannot be called as a function.
Does anyone know how to implement it in the separate module?
Thanks!