Clear Repeated grid fields

Hi there,

I have a grid row that uses ng-repeat to populate from some server code to the database.
When I select a day from the drop down list, it selects the tasks for that day from the database and lists them in a series of rows.

However, if I select the first day and it has 9 tasks and then I select the second day and it only has 5 tasks for example, the last 4 tasks of the first day still remain on the page. I can clear the $scope model every time I call it which does remove the tasks, but it still leaves the grid rows.

How can I ensure that every time I call the server code, the grid rows are removed as well? I don't want to refresh the whole page, just clear the rows?

Cheers
Mike
1 person has
this question
+1
Reply