Ionic and wordpress integration with subdomain

I need help. I have wordpress installed both on my domain and subdomain.

I try to integrate wordpress posts in my ionic app using this tutorial:

This work on my domain but not on my subdomain.

What i really want is to my ionic app get posts from wordpress installed on my subdomain.