Browse Source

Merge pull request #7086 from abpframework/fix/7084

ThemeBasicTestingModule does not provide VALIDATION_INVALID_CLASSES
pull/7090/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
ee181854f9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      npm/ng-packs/packages/theme-basic/testing/src/lib/theme-basic-testing.module.ts

10
npm/ng-packs/packages/theme-basic/testing/src/lib/theme-basic-testing.module.ts

@ -5,7 +5,11 @@ import {
ValidationErrorComponent, ValidationErrorComponent,
} from '@abp/ng.theme.basic'; } from '@abp/ng.theme.basic';
import { ModuleWithProviders, NgModule } from '@angular/core'; import { ModuleWithProviders, NgModule } from '@angular/core';
import { VALIDATION_ERROR_TEMPLATE, VALIDATION_TARGET_SELECTOR } from '@ngx-validate/core'; import {
VALIDATION_ERROR_TEMPLATE,
VALIDATION_INVALID_CLASSES,
VALIDATION_TARGET_SELECTOR,
} from '@ngx-validate/core';
@NgModule({ @NgModule({
exports: [BaseThemeBasicModule], exports: [BaseThemeBasicModule],
@ -26,6 +30,10 @@ export class ThemeBasicTestingModule {
provide: VALIDATION_TARGET_SELECTOR, provide: VALIDATION_TARGET_SELECTOR,
useValue: '.form-group', useValue: '.form-group',
}, },
{
provide: VALIDATION_INVALID_CLASSES,
useValue: 'is-invalid',
},
], ],
}; };
} }

Loading…
Cancel
Save