What steps are involved in implementing a custom attribute directive to auto-focus an input element?
I want to improve user experience by making input fields automatically focus when the page loads in my Angular app. Instead of manually adding focus each time, I’d like to create a reusable custom attribute directive. However, I’m unsure how to access the input element and trigger the focus action at the right time. What are the steps to create and implement this directive for auto-focus functionality?