There is a way of creating libraries in Angular and then we can also refer it by directly specifying the projects git url in package.json instead of library. What are the pros and cons of both these approaches? I created angular library which has some additional steps and then realized I could have used the project without creating the library, which seems easier. Any thoughts?
Basically, difference between -
https://blog.angularindepth.com/creating-a-library-in-angular-6-87799552e7e5
And
npm install private github repositories by dependency in package.json