<div>
<input type="text" ng-model="test"/>
</div>
When a value is entered into the input field with the ng-model "test", it is always treated as a String type, even if it is a valid number. However, I am looking for a way to determine the exact data type of the entered value.
Is there a method to identify the data type of the entered value? For example, if the value entered is a number, the data type should be "Number", and if the value entered is "Abc", the data type should be "String", and so on.
In summary, I need to keep the same HTML structure but be able to determine the data type of the value entered.