Question: What is the most elegant way to ensure the last separator on each line is never shown?
11|18|3|8|12|1|22|31|61|
11:18:3:8:12:1:22:31:
11,18,3,8,12,61,
1 22 31
Note that the data originates from three different arrays, e.g., the data for line 1 is defined as:
$scope.numbers = [11,18,3,8,12];
$scope.specialNumbers = [1,22,31];
$scope.additionalNumbers = [61];
I would like to see a more elegant/angular way, than just finding the last <li> and remove separator using $element.find, or similar.
I created a little JSFiddle example to demonstrate the problem.
Thanks