Why Angular xmpp services doesn't work in ionic ?

I've run an app from https://github.com/robotnic/angular-xmpp-services/ and works fine.When i introduce code in my app which is write in ionic i have the next error:(intermediate value).of is not a function.Does anyone know what's about?