Sign-in/register ionSlideBox inside $ionicModal

Here’s a codepen of a simple sign-in/register modal using a reusable modal service I found elsewhere here. I’m looking for ideas on how to “component-ize” it correctly. I thought about making it a directive, but I am not sure how to call the appModalSvc.show() method that kicks everything off.

Ideas?

I cleaned up my code an refactored it into an angular factory which launches a $ionicModal that wraps an ion-slide containing both sign-in and register forms. Here is the link:

image

image