Angular filter : don't use the data of the other array
<p>I have an array, with all the data, the complete list. I have a second array with only few of those data.</p>

<p>What I want to do is to filter the first one to get only the data that are different to the ones in the second array. And then make a third array with the filtered one.</p>

<p>Here are the arrays :</p>

<pre><code>$scope.allparams = [{
    'tab': 'ADH',
    'title': 'Adhérent'
}, {
    'tab': 'ADH',
    'data': 'civilite',
    'lib': 'Civilité',
    'type': 'select'
}, {
    'tab': 'ADH',
    'data': 'nom',
    'lib': 'Nom',
    'type': 'text'
}, {
    'tab': 'ADH',
    'data': 'prenom',
    'lib': 'Prénom',
    'type': 'text'
}, {
    'tab': 'ADH',
    'data': 'dateNaissance',
    'lib': 'Date de naissance',
    'type': 'date'
}, {
    'tab': 'ADH',
    'data': 'nationalite',
    'lib': 'Nationalité',
    'type': 'select'
}, {
    'tab': 'ADH',
    'data': 'statut',
    'lib': 'Statut',
    'type': 'select'
}, {
    'tab': 'DET',
    'title': 'Détail comptable',
    'type': 'select'
}, {
    'tab': 'DET',
    'data': 'saison',
    'lib': 'Saison',
    'type': 'select'
}, {
    'tab': 'DET',
    'data': 'activite',
    'lib': 'Activité',
    'type': 'select'
}, {
    'tab': 'DET',
    'data': 'prix',
    'lib': 'Prix',
    'type': 'currency'
}];

if (exportService.getStockParams() != undefined) {
    // The second one, filled with a method
    var stockParams = exportService.getStockParams();
}
</code></pre>

<p>Here is an exemple of the second array :</p>

<pre><code>    [{
    "tab": "ADH",
    "data": "nom",
    "lib": "Nom",
    "ordersource": 2,
    "added": true
}, {
    "tab": "ADH",
    "data": "prenom",
    "lib": "Prénom",
    "ordersource": 2,
    "order": null,
    "added": true
}, {
    "tab": "ADH",
    "data": "dateNaissance",
    "lib": "Date de naissance",
    "ordersource": 2,
    "order": null,
    "added": true
}]
</code></pre>

<p>Tell me if you need more details.</p>

<p>I'm new to Angular, and the filters seem quite hard to master.</p>

<p>Hope you could help.</p>