for demonstrating ng-cordova error when used with ionic. http://goo.gl/GpO7cg