reactive form create custom validator code example
Example 1: angular validators number only in reactive form
new FormControl({value: field.value}, [Validators.required, Validators.pattern(/^-?(0|[1-9]\d*)?$/)])
Example 2: ng2 validations angular using reactiveforms