How to call function after item viewed in screen?

I use a directive in page multiply.
I want to call function for any directive when directive is viewed in screen.
how to call function after item viewed in screen ?

You can try using this method

ionViewDidLoad(){
  ......
}

Also, you could look through the ionic view lifecycle. P.S scroll to the page even section