title: ngFor with localStorage
body: <p>I got a problem with the ngFor, im doing ngFor for one array in order to create cards with images, the array contains the urls, but when i add a new url the card image show but when i reload the url is gone from the array</p>
  
  <pre><code>&lt;div class="card" *ngFor="let url of array"&gt;
  </code></pre>
  
  <p>and i got this to add the url in the array</p>
  
  <pre><code>this.array.push(url);
  </code></pre>
  
  <p>so i was told i need a localstorage so i wont loose the data so i did this</p>
  
  <pre><code>  test1=localStorage.setItem("arrayUrl", JSON.stringify(this.array));
    local = JSON.parse(localStorage.getItem("arrayUrl"));
  </code></pre>
  
  <p>after that i did this </p>
  
  <pre><code>    &lt;div class="card" *ngFor="let url of local"&gt;
  </code></pre>
  
  <p>but its not working because images are not being displayed when adding to the array, so i have to add the url to the array or to the localstorage or where? and how do i manage to create thoose card images with the ngfor and make them permanently</p>