What if angularjs Mobile client clicks on the button and the pop-up keyboard is unstable?

  node.js, question

Sometimes clicking a button only displays the text box but does not get the focus, that is, does not pop up the keyboard.
Sometimes you can eject the keyboard normally. . It’s strange. No reason can be found. .
I measured the iphone5. . The code is simple. . Anyway, the effect I want is to click on the button to automatically pop up the keyboard.

<div ng-controller="myctrl">
 < button id = "btn" ng-click = "acclick ()" > click < /button >
 <input type="text" id="myinput" ng-show="isShow">
 </div>
 <script type="text/javascript">
 
 var app = angular.module("app",[]);
 app.controller("myctrl",function($scope,$timeout){
 $scope.aClick = function(){
 $timeout(function(){
 document.getElementById("myinput").focus();
 })
 $scope.isShow = true;
 bracket
 })
 
 </script>
document.getElementById("myinput").focus();

Change to

angular.element('#myinput').focus();

Try
Also, add jquery’s class library