How to create a function module using angular-cli

I use angular-cli to create a function module. This module used to sit as another module in my main angular application (also created using angular-cli). Now I want to move it to a separate module, which can be published separately, while others can use it as a third-party library.

I was able to publish it, but when I try to use it in the main angular application, import is not possible. I see that my functional module exists in the node_modules folder, but the directory structure is very different from the whole third-party angular library I use (bootstrap, angular -split, etc.).

The directory structure for my function module seems to be incorrect. How to create a functional module using angular-cli and what should the directory structure look like?

enter image description here

+5
source share

Source: https://habr.com/ru/post/1269297/


All Articles