title: ViewChild/ViewChildren and class selector in Angular
body: <p>I use Angular 9 and use <code>ViewChild</code> and <code>ViewChildren</code> to select elements that are present in my HTML file. Do any of these two functions support class selectors? As far as I can see, they only work for IDs.</p>
  <pre><code>@ViewChild('.foo') Foo: ElementRef;
  </code></pre>
  <p>Any alternative would also be good, just during the execution of a function I would like to have access to all 'Foo' objects.</p>
  <p><a href="https://angular.io/api/core/ViewChild" rel="nofollow noreferrer">https://angular.io/api/core/ViewChild</a></p>
  <p><a href="https://angular.io/api/core/ViewChildren" rel="nofollow noreferrer">https://angular.io/api/core/ViewChildren</a></p>
  <p>Thank you!</p>