Create Custom Components and consume them in an ionic 2 app


Is there a way that we can write custom ionic 2 components and maintain them as a separate package that lives outside of an ionic 2 app and be able to consume them across multiple ionic 2 apps
with npm install --save ?

For example

  1. create a component in angular2 ionic 2
  2. make it a package using npm
  3. and then in an ionic 2 app – consume it as a library like npm install --save