title: Make a list from two lists
body: <p>I have two lists that contain the same Elements as well as different elements. How to make a list from these two lists and spring me commonalities and new items?</p>
  
  <pre><code>...
              &lt;list-of-items items="application.units"
                             label="$item.name"
                             selected-item="unit"
                             selectable="true"
                             onedit="on_edit_unit($item)"
                             editable="false"
                             size="small"&gt;
              &lt;/list-of-items&gt;
              &lt;list-of-items items="applicationCible.units"
                             label="$item.name"
                             selected-item="unit"
                             selectable="true"
                             onedit="on_edit_unit($item)"
                             editable="false"
                             size="small"&gt;
              &lt;/list-of-items&gt;
  ...
  </code></pre>
  
  <h2>Update</h2>
  
  <p><strong>In my HTML:</strong></p>
  
  <pre><code>..
            &lt;list-of-items items="platforms.concat(platformsCible).unique()"
                             label="$item"
                             selected-item="platform"
                             createfunction="add_platform($name)"
                             selectable="true"
                             editable="false"
                             size="small"&gt;
              &lt;/list-of-items&gt;
  ..
  </code></pre>
  
  <p><strong>In my JS:</strong></p>
  
  <pre><code>propertiesModule.controller('PropertiesCtrl', ['$scope', '$routeParams', 'PropertiesService', 'ApplicationService', 'PlatformService', 'Page',  function ($scope, $routeParams, PropertiesService, ApplicationService, PlatformService, Page) {
  
  ...
  
  Array.prototype.unique = function() {
      var a = this.concat();
      for(var i=0; i&lt;a.length; ++i) {
          for(var j=i+1; j&lt;a.length; ++j) {
              if(a[i] === a[j])
                  a.splice(j--, 1);
          }
      }
  
      return a;
  };
  
  }]);
  </code></pre>
  
  <p>There is duplicate item with this method </p>