In this course, we will see how to we can build/create an angular library with step by step and also will look into how we can publish our library into the npm (package manager) so it can be used in any angular application.
We will be covering the following topics :
Topics:
A library is known as a collection of components, services, directives, etc. that can be used or shared across the various angular application.
In short, the Library is a collection of pre-compiled routines that a program can use.
The library is an angular project that cannot run on its own, to make it run, it must be imported and used in angular application.
So, an Angular library is a Shareable code which provides Reusable functionality.
The main question arises is why we need this library? is it useful? well, it is!
Sometimes components, services, etc could apply to multiple angular projects. So to re-use this code easily across different apps, this concept of creating our Angular library was introduced.
These libraries can be used in your local workspace or you can publish them as npm package to share with other projects or with other Angular developers across the globe.
So let’s get started…
Comments are closed.