Angularjs $http post error in Ionic

I think the error is API end :smile:

http://codepen.io/webslinger/pen/LppQYx

For this to run on a browser you’ll need to run chrome with --disable-web-security flag

A PHP Error was encountered

Severity: Notice
Message: Trying to get property of non-object
Filename: controllers/Json.php
Line Number: 20