Conceptual
Login

Template Refs

useTemplateRef (or a ref matching the element's ref attribute) yields direct access to a DOM element or child component instance, populated only after mount and null before; it is the sanctioned escape hatch for imperative DOM work like focus, measurement, or third-party library mounting.

This Concept is waiting for its first lesson!

useTemplateRef (or a ref matching the element's ref attribute) yields direct access to a DOM element or child component instance, populated only after mount and null before; it is the sanctioned escape hatch for imperative DOM work like focus, measurement, or third-party library mounting.

Are you a teacher? Sign in to start contributing.

Sign In