I created a one-page application (of several) views using angular, which loads various page content. I would like to apply the initial focus for the first input element for all screens throughout the use of the angular script instead of using the autofocus attribute in each element of the page form.
Is there any way to do this?
and
How do we know if the angular view (DOM) is fully loaded or not?
source
share