How to build and publish an Angular module
Cyrille Tuzi

Hey! This is very nice, thank you for the detailed post.

I have a couple of questions though:

  1. If I include a template.html for a component, and reference it with templateUrl: './xxx' ngCompiler checks if the file is there (if not, compilation fails) but it is never copied to dist folder. How should we approach this?
  2. If I wanted to publish a single UI component (without ngModule), ngCompiler complains that there is no ngModule, can we work around this? Haven't found anything on it. Using tsc leaves us without the angular functionalities and validations and question 1 would still be an issue.
Like what you read? Give Juan Porley a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.