How to validate text field using regex in angularjs, Text field accept only valid input.
<input type="text" name="phone"/>
Above input text field allow me to enter number only.When I enter alphabet it should not accept.