Issues with Angular SDK

Hi guys first, great peace of software you guys have created.

“TypeError: Cannot read property ‘getRecords’ of undefined”, this is the error I get on my ionic/angular app using the example available for the SDK, I have implemented authentication with SDK and all works fine, but I have an EventService that replicates the example and I cannot return anything I get the error described.
I am new App development in general but a PHP developer by trade, I understand angular but I am probably missing something obvious.
Thank you.

Answered my own question but for reference here is the code i used to prevent the error.

 $scope.$on('api:ready', function() {
            console.log('api ready');


So getEvent performs api request and works fine.

1 Like

By the way @paulocarvalho, we have an updated Angular SDK available as of this week: