I have to focus the input at the loading of a modal but if I use the html5 attribute autofocus
it seems not working.
Is it possible to make it works?
<div class="col-md-6">
<div class="form-group label-floating">
<label class="control-label">
{{'ticketbundle.busroutedetail.dialog.labels.buslinename'
| translate }}<span class="star">*</span>
</label><input autofocus class="form-control" id="name" required
[(ngModel)]="busRouteDetail.name" name="name" #busRouteDetailname>
</div>
</div>
I am using angular material 2