Question: What is the purpose of the ViewChild decorator in this component class?
- It provides access from within the component class to the ElementRef object for the `
` tag that has the bio template reference variable in the component's template view.
- It indicates that the `
` tag be rendered as a child of the parent view that uses this component.
- It makes the `
` tag in the template support content projection.
- It makes the `
` tag visible in the final render. If the #bio was used in the template and the @ViewChild was not used in the class, then Angular would automatically hide the `
` tag that has #bio on it.
Answer: The correct answer of the above question is Option A:It provides access from within the component class to the ElementRef object for the ` ` tag that has the bio template reference variable in the component's template view.