I have a array of objects, in client side. The object in array look like this:
{ code: 0, short_name: \'a\', type: 1 }
I try to
You're very close. You just need to change your second filter to:
$scope.array2 = $filter('filter')(data, { type: '!1' });
I also renamed the scope variable since otherwise it would just overwrite your first filtered array.