After cloning this repository, install dependancies.
npm install
In "angular.json" file, change "prefix".
In "library/tslint.json", change "prefix".
In root project :
ng g component my_component --project library
After, export this component in library.module.ts and public_api.ts.
In root project :
npm build
The library will be published under the name "library". To change this, update name value in library/package.json.
In new angular project, import the library.
npm install my_library
If your library has been published in private registry.
npm install my_library --registry http://npm.myregistry.com