Questions tagged [angularjs-limitto]

28 questions
0
votes
1 answer

Prepend content to ng-repeat

I have a ng-repeat directive pulling out data from a static json file. I am using a filter to limit the number of items of the directive and buttons to increase / decrease that limit. I want the content to be prepended (added to the top) to the list…
0
votes
1 answer

ng-repeat with limitTo feature with start index

Let us say I have [1,2,3,4,5,6,7] array, I need to split into it so that I always have 3 objects, i.e. [1,2,3], [4,5,6] , [5,6,7] on clicking next in the page. How to achieve this using start index and limitTo feature of angularjs?
shekar rao
  • 33
  • 5
0
votes
0 answers

angular ng-repeat more than 1 alias

Is possible more than 1 alias in ng-repeat follow example ? ng-repeat="dt in data | limitTo: reportCtrl.rowsLimit as rows1 | limitTo: reportCtrl.tableParams.rowsLim: (reportCtrl.tableParams.currentPage - 1) * reportCtrl.tableParams.rowsLim as…
0
votes
2 answers

AngularJS ng-repeat filter to apply if condition is met

I have two arrays. One is items and the other is items2. And if items2 is an empty array I only want to show the one item in items. How can apply a condition to the filter limitTo? The limitTo should only be considered if a certain condition is…
0
votes
4 answers

Changing/updating amout of items in ng-repeat with limitTo

Lets say, I am repeating a div with using ng-repeat | limitTo:6 , (and also let say I have 5000 of them) and when I click on the div , the div will be removed . And then there will be only 5 items shown. How can I edit it , so that when an item…
user6564745
0
votes
0 answers

Using limitTo in directive with ng-repeat removes all my items from the DOM

I'm building an angularJS app. I've many data to retrieve from an array of json objects, and I've to limit the number of those data, and I want to use limitTo to perform that. I use ng-repeat inside a directive like below :
kabrice
  • 1,475
  • 6
  • 27
  • 51
0
votes
1 answer

How to implement load more posts with Angular2?

In AngularJS I used Limit To, but on the Angular2 this function was removed. Example:
....Content here...
Controller: app.controller('TravelController',…
Hugo Silva
  • 11
  • 4
0
votes
1 answer

Angular limitTo with filter return the limitTo size

I am trying to count the rows that remain after filtring: ng-repeat="person in filtered = ( data | filter:query | filter : name | filter {m_resource: resourceFilter} | filter : {m_id : idFilter} | limitTo:maxRowSize )" And then use {{…
Itsik Mauyhas
  • 3,824
  • 14
  • 69
  • 114
0
votes
2 answers

orderBy and limitTo in ng-repeat child

i would like to use orderBy and limitTo in array which is contain in other array so i need to use ng-repeat two times: i tried this but not working
0
votes
2 answers

Does the limitTo filter in angular prevent loading other items in ng-repeat?

If I implement a 'load more' button that increases the limitTo filter in Angular.js, does the filter prevent loading the whole ng-repeat array? What if I for example have 100 images in my ng-repeat. And i implement a limitTo filter with '9' on…
Jim Peeters
  • 2,573
  • 9
  • 31
  • 53
0
votes
1 answer

split ng-repeat over object's attributes

i have a directive that injects a high amount of data on a high-chart that iterates using ng-repeat over an object's attributes:
0
votes
0 answers

use filter, limitTo with begin in ng-repeat

I want to implement search & pagination as easily as possible using default angular features as Angular 1.4 now has begin parameter in limitTo filter. Desired functionality : Search from all items in array implement pagination using limitTo…
-2
votes
1 answer

How to use limitTo with math expression (angular)

I'm trying to develop some pagination buttons using ng-repeat like this:
  • {{(Math.ceil(indexN+1/10))}}
  • This code checks how many items…
    1
    2