taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

Angularjs-Ionic Service Settings

Hello,

I try to use service settings in Ionic App Project as written here:
https://devcenter.appery.io/documentation/angularjs/using-a-settings-service/

But in console i get : "Cannot read property 'get' of undefined" error. for codeApperyio.Сonfig.get/code.

I try to run this before send in init() function. Also i tried with a button ng-click scope, nothing it gives same error.

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angularjs-Ionic Service Settings

Hello,

It is not able in the function init on the index page. You can use it in others functions.

taucher
Posts: 0
Joined: Fri Apr 17, 2015 6:06 am

Angularjs-Ionic Service Settings

Thanks Sergiy,

I will try.

Madi Anas
Posts: 0
Joined: Thu Sep 03, 2015 9:52 pm

Angularjs-Ionic Service Settings

I get the same error. I am testing this with a button not in init()
Also I am using ionic+Angular

pre
var string = Apperyio.Сonfig.get('MyAppDB_settings.database_url');
console.log(testingstring);
/pre
Image

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Angularjs-Ionic Service Settings

Hello Madi,
What is that function? When do you call it?

Return to “Issues”