0

ui-select2=" " を使用してドロップダウンを作成しています。リスト項目を結果に並べ替える方法

HTML:

<input  style="width:100%"  type="text" ui-select2="selectuiOptions"     
 data-placeholder="Select or Add Process/Ingredient">

js:

    $scope.selectuiOptions = {
            data : $scope.processes,
}

リスト要素を結果にソートする方法

4

1 に答える 1

0

次に例を示します。

function MyCtrl($scope, orderByFilter)

var isReverse = true,
    propertyName = 'myProperty';

$scope.selectuiOptions = {
   data : orderByFilter($scope.processes, 'propertyName', isReverse),
   ...
}
于 2014-01-17T10:34:53.987 に答える