UNPKG

angular-l10n

Version:

An Angular library to translate messages, dates and numbers

33 lines 1.03 kB
/** * @fileoverview added by tsickle * @suppress {checkTypes,extraRequire,uselessCode} checked by tsc */ import { NgModule } from '@angular/core'; import { LocaleValidation } from '../services/locale-validation'; import { L10nNumberValidatorDirective } from '../directives/l10n-number-validator.directive'; /** * Provides dependencies & directives for validation by locales. */ export class LocaleValidationModule { /** * Use in AppModule: new instance of LocaleValidation. * @return {?} */ static forRoot() { return { ngModule: LocaleValidationModule, providers: [LocaleValidation] }; } } LocaleValidationModule.decorators = [ { type: NgModule, args: [{ declarations: [ L10nNumberValidatorDirective ], exports: [ L10nNumberValidatorDirective ] },] } ]; //# sourceMappingURL=locale-validation.module.js.map