<tr ng-repeat="ar in arrSOA | orderBy: orderByVar">
just use logic in js file to change $scope.orderByVar
$scope.addSOA = function () { $scope.displayOrderChanged = false; $scope.showAddSOA = true; $scope.orderByVar = "$index";....
<tr ng-repeat="ar in arrSOA | orderBy: orderByVar">
just use logic in js file to change $scope.orderByVar
$scope.addSOA = function () { $scope.displayOrderChanged = false; $scope.showAddSOA = true; $scope.orderByVar = "$index";....
app.controller('AppController',
function($scope) {
$scope.var1 = 'This is some text.';
$scope.var2 = 'And this is appended with custom filter.';
}
);
app.filter('filterReceiptsForDate', function () {
return function (input, scope) {
return input + ' <strong>' + scope.var2 + '</strong>';
};
});
| orderBy:'displayOrder'
Service.prototype.UpdateScopeOfAudienceBulk = function(req, res, next) {
when done everything, need to return to GUI
put results in req.result
req.result = {};
req.result.count = count;
next(); // this will return back to GUI from micro service
confusing part is "next" is kind of corresponding to err
var myJsonString = JSON.stringify(yourArray);
var jsonArray = JSON.parse(JSON.stringify(pluginArrayArg))