angular built in validators for minimum code example Example: angular number validation ng-pattern="re"