Angular generic module via npm channel

I want to create a shared module project that contains some common stuff and some components that will be used in all my applications (like a header). Later this module will be added as a dependency in package.json and must be installed via Nexus. But during development I want npm to link this to my filesystem because I don't want to go the "nexus path" every time I change something in the shared module.

My questions:

  • Can I use angular decorators (like @Componennt or @NgModule) in this shared module?
  • How do I import all this stuff with a common module into my actual project?
+3


source to share





All Articles