Angularjs-Ionic Service Settings
Posted: Mon Sep 28, 2015 11:36 am
by taucher
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.
Angularjs-Ionic Service Settings
Posted: Tue Sep 29, 2015 10:52 am
by Serhii Kulibaba
Hello,
It is not able in the function init on the index page. You can use it in others functions.
Angularjs-Ionic Service Settings
Posted: Tue Sep 29, 2015 10:54 am
by taucher
Thanks Sergiy,
I will try.
Angularjs-Ionic Service Settings
Posted: Sat Oct 03, 2015 4:45 pm
by Madi Anas
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
Angularjs-Ionic Service Settings
Posted: Tue Oct 06, 2015 7:19 pm
by Serhii Kulibaba
Hello Madi,
What is that function? When do you call it?