Thought it might be wise to add my code in here

app.controller("ManageNews",function($scope, $http){
    $scope.articles = {};
    
    
$http.jsonp('http://stlucianewsonline.com/?json=recentstories&alt=json-in-script&callback=JSON_CALLBACK')
    .success(function(data) {
      
      $scope.articles.mainPost = data.posts.splice(0,1);
      $scope.articles.posts = data.posts;
    })
    .error(function(data) {
      alert("Data Pull failed!");
    });
    
    $scope.clearSearch = function(){
        $scope.articles.search = '';
    };
});


On Monday, 30 June 2014 21:26:21 UTC-4, Kim Dan wrote:
>
> Hello. I've been banging my head against a wall with this issue: I created 
> a mobile app using ionic + Angularjs, that uses the $http service to pull 
> content form a news website and generate a list of news article titles and 
> pictures. When I test the app on the computer it works fine, pulls and 
> loads 25 articles but when I test it on the phone it only pulls the first 
> four articles, and displays no pictures and i don't know why. What can I be 
> missing? Is there a plugin or permission i forgot to add or i there a fault 
> in the $http service?
>

-- 
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