I tried to apply the code below in the parent Typescript controller, but it does not work.
Did I miss something?
angular.element(document).ready(function() {
$('form').find('input[type=text],textarea,select').filter(':visible:first').focus();
});
source
share