<分区>
我有一个非常简单的数组,它有重复的值。我的数组是这样的:
$scope.type= ["Bar", "Pie", "Line", "Line", "Line", "Line", "Line", "Line", "map", "Line", "Bar", "Pie", "Pie", "Pie", "Pie", "Pie", "Pie", "Pie"]
在我的ng-repeat中,我有这个条件
ng-repeat = types in type track by $index
如何在 ng-repeat 中仅显示数组中的唯一值?