My current need is to access the numeric keyboard of the mobile phone. The technology used is ionic cordova
Now the input box can directly call the mobile phone's keyboard, but now it needs a numeric keyboard. I have used type="number", but the two-way data binding of the input box is string, so an error is reported, so I control Number is used for forced type conversion in the processor, but what is passed to the background is string type. If String is used for forced conversion before passing it to the background, the result is still a number error, so I want to use cordova's keyboard plug-in, but this can only call Soft keyboard, how to call up the numeric keyboard? ? ? Need a solution? ? ?
Input two-way binding is string? Didn't understand. Are you using ng-modal? ng-modal needs to be bound to object variables. Input, you add a type=‘tel’. Try it. It only calls up the numeric keyboard and I haven’t found it yet. I am using ionic1