title: I would like to add a remove button in my Angular App
body: <p>I have an Angular App, I would like to add a remove button for a div element, I currently have an add button, which is as follows:</p>
  
  <p>ts file.</p>
  
  <pre><code>uploads = [];
  
   addUp() {
      this.uploads.push(this.uploads.length);
    }
  </code></pre>
  
  <p>I have tried </p>
  
  <pre><code>removeUp() {
          this.uploads.remove(this.uploads.length);
        }
  </code></pre>
  
  <p>This code is linked to this button as follows:</p>
  
  <pre><code>&lt;button class="btn" (click)="addUp()"&gt;Add&lt;/button&gt;
  </code></pre>
  
  <p>HTML</p>
  
  <pre><code>    &lt;div class="col" *ngFor="let upload of uploads"&gt;
         &lt;h2&gt;Upload&lt;/h2&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>How would I do the remove version? </p>