In this article, you’ll learn how to create a library with Angular CLI. Besides, we’ll explore how to publish a library and talk about dependencies linking and peer dependencies.

When companies projects become large it ends up splitting into several sub-projects. It’s a bit like micro frontends, the trendy word for microservices in the browser.

In both cases, you got many projects and want to share some common behaviour. That’s why you begin to create libraries to share common things such as logging and API services.

In this article, you’ll learn how to create a library with Angular. The Angular documentation is complete about how to create a library. Yet, it’s hard to grasp if you’re not confident with some basics. While creating your library, you’ll also learn about dependencies linking and peer dependencies.

#angular #library

Create your Standalone Angular Library in 10 minutes
8.95 GEEK