Lesson

Extract an Angular Module into a separate library with ng-packagr

Angular Modules can be seen as a distributable unit. They group together a set of logically connected code which can be imported and used by other modules within an Angular application. However, if you want to share them across multiple applications, you have...

Duration
5 min
Access
Free
Transcript
Available

Angular Modules can be seen as a distributable unit. They group together a set of logically connected code which can be imported and used by other modules within an Angular application. However, if you want to share them across multiple applications, you have to extract, package and distribute them accordingly. In this lesson we will learn how to extract an existing module and to use ng-packagr in order to bundle it according to the Angular Package Format.