According to Angular ViewChild Documentation, ViewChild Selector can the Component Class or a query string. Same result can be achieved with both. So what is the difference between these two, when to use what and performance wise which is better to use?
app.component.html
<hello #hello></hello>
app.component.ts
@ViewChild('hello') hello: HelloComponent;
and
app.component.html
<hello></hello>
app.component.ts
@ViewChild(HelloComponent) hello: HelloComponent;