title: alternative of jquery's $.each in angular 6
body: <p>I want to loop through each element by its class for setting new value in the src attribute. below is the jquery code, how can i rewrite in typescript in angular</p>
  
  <pre><code>$(".image").each(function () {
      $(this).attr("src","http://xxx/xxx.png");
  });
  </code></pre>