Skip to content

API Reference


API Reference / @dasch-ng/validators / NativeNumberValidatorDirective

Class: NativeNumberValidatorDirective

Defined in: number/native-number-validator.directive.ts:16

Implements

  • Validator

Constructors

Constructor

new NativeNumberValidatorDirective(): NativeNumberValidatorDirective

Returns

NativeNumberValidatorDirective

Methods

validate()

validate(): ValidationErrors | null

Defined in: number/native-number-validator.directive.ts:19

Returns

ValidationErrors | null

A map of validation errors if validation fails, otherwise null.

Description

Method that performs synchronous validation against the provided control.

Implementation of

Validator.validate

Released under the MIT License.