<span ng-repeat="detail in item.RoleList|orderBy:OrderNum">{{detail.RoleName|nextRole:item.RoleList:$index}}</span>
.filter('nextRole', function () {//模块角色
return function (input, list, index) {
if (index == list.length - 1)
return input;
else
return input + '——'
};
});