I have a structure as follows:
---app.module
-------child1.module
-------child2.module
Both child modules use a common component (app-film
). I declared the component in app.module
, but Angular is still showing an error.
Can't bind to 'film' since it isn't a known property of 'app-film'.
1. If 'app-film' is an Angular component and has a 'film' input, verify that it is part of this module.
2. If 'app-film' is a Web Component, add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
View the code on stackblitz here: https://stackblitz.com/github/ms-dosx86/films