Ionic / AngularJS PubNub example