Best practices to share code between regular anfular 2 SPA and ionic v2 app?

Please advise Best practices to share code between regular angular 2 SPA and ionic application.