I have a component that I would like to reuse in a few places throughout my applications. As such, I created a module within my core module with new component. The error I'm getting is 'foo' is not a known element
.
You can see a demo here. You will see the component I wish to share module in app/core/foo/foo.component.ts
, which has been imported into CoreModule
. And you will see FooComponent
(using selector foo
) being used in app/crisis/crisis-list.component.ts
.
I've read the Angular 2 module documentation to death and can't put my finger on why I can't use FooComponent
wherever I please.
What am I missing?