Ionic AngularJS PubNub example