Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { FormControl } from '@angular/forms';
- export function isNumber(c: FormControl) {
- return !isNaN(c.value) ? null : {
- isNumber: {
- valid: false
- }
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement