Hi!, im using phonegap for a mobile application and the received data its 
not been displayed, i think is the "deviceready".

Heres my code

angular.module('tesisApp')
  .controller('CoursesCtrl', function ($scope,$http,$cookieStore,courses) {
    courses.get({
            id: $cookieStore.get('id')
        }).$promise.then(function(data){
            $scope.courses = data.Courses;
        }).catch(function(err){
            console.log(err);
        })
});

i make a service call courses.


angular.module('tesisApp')
.factory('courses', ['$resource', function ($resource) {
 return 
$resource("http://192.168.1.131/tesis/serverSide/index.php/getCourses/:id",null,null);
 }])

the app work in a browser, but when I use the phone no longer displays the 
data.
 


-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to