npm install ngx-focus-control --saveFocus auto directive
The directive auto-focuses element when an element is created, a page is visited, or delay data bidding is changed. Users can define delay of focus. 0 is the default delay when a delay is not specified.
Input in the example should be auto-focused when you have visited this page.