Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

ng-siret-validator

jbpoujol33AGPL v31.2.3TypeScript support: included

  • SIRET Entreprises * SIRET La Poste

siret, validator, angular, entreprise, la poste, lunh

readme

ng-siret-validator

About

A simple SIRET validator for Angular :

  • SIRET Entreprises
  • SIRET La Poste

Licence

NPM

Installation

Run the following command to install the package :

npm install ng-siret-validator --save

Setup

You must import the validator ValidateSiret in your component


import { ValidateSiret } from "ng-siret-validator";


 this.siretForm = this.formBuilder.group({
      siret: ['', [Validators.required, ValidateSiret]]
 });