Hi Lucian I guess one thing you could to id manually apply the *same* filter inside the controller at a given point in time (when you want to save the filtered results). I'm not sure if this is along the lines of what you were suggesting.
You do however end up repeating the structure of your data and the filtering that you do in your view. Something like this: http://jsfiddle.net/0ma28ur2/9/ ? Justin On Tuesday, October 14, 2014 7:03:12 PM UTC+2, lucian enache wrote: > > Hello, suppose that I have a nested ng-repeat and each object has an array > over which I loop and display the elements. > > My question is how can I save the filtered array inside the view? > here is a fiddle of what I am trying to achieve : > http://jsfiddle.net/0ma28ur2/1/ > > One solution I was thinking of would have been to build a custom filter > inside the controller > and manipulate the data there. > > Any suggestions ? > -- 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.
