I want to add new article to my blog with click on button like this link : 
website <http://www.beautystarts.com/news> . As you see there is 25 article 
in this page and at the bottom of page , there is button "Mehr..." that 
when you click on it , load 25 the other article in page . Should I use 
loop for this ? Please guide me .

$scope.moreBtn = function(){
     $.each(resp, function(e, val) {  // past article that there is on page
          $.each($scope.articles, function(index, value) { // new article that 
we want add to page
              if ($scope.articles[index].Title != resp[e].Title) { // compare 
old and new article
                  $scope.articles.push(resp[e]);
              }
          }
     }}

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to