I have an Angular 2 project with the following structure:
/app
app.component.ts
app.module.ts
/shared
shared.module.ts
/layout
/utilities
utilities.module.ts
/icon
icon.component.ts
/message
message.module.ts
message.component.ts <----Problem here
Within utilities.module.ts I import the icon component, declare it and export it.
Within the shared module, I import the utilities module and export it as well.
Within the app module, I import the shared module. Within my app component I want to
use my icon component, but I get the error: 'app-icon' is not a known element:
Is it posible to to re-export modules/components like this? If not, is the only alternative to import the utilities module directly into the app module?
Edit: I have noticed that the module/component/template that is complaining that the app-icon component is not available is the message component. I have tried to import the icon component directly into the message component, but it still complains about the icon component not being available.