Capture ION-SLIDES index using a custom directive

I can get the index for the ion-slides using the component via slides.getActiveIndex(). But, unable to get the index using custom directives. Can anyone help with this? @mhartington