dimanche 15 mars 2015

load user ID from sqlite in inout field in ionic

I am using ionic framework for apps in android, windows. It is working nice.But i want to load user id onlaod view. The problem is that

Controller call first .controller('SignInCtrl', function($scope, $state, $http, $rootScope,$ionicLoading,$filter,$ionicPopup, $timeout,$cordovaSQLite) {}})


Then call below function $ionicPlatform.ready(function() {})


if i want to call onload funtiocn in SignInCtrl to get user ID then it gets null because it run before device ready function


How to solve it?


Aucun commentaire:

Enregistrer un commentaire