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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
9 additions and
1 deletions
-
npm/ng-packs/packages/theme-basic/testing/src/lib/theme-basic-testing.module.ts
|
|
|
@ -5,7 +5,11 @@ import { |
|
|
|
ValidationErrorComponent, |
|
|
|
} from '@abp/ng.theme.basic'; |
|
|
|
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({ |
|
|
|
exports: [BaseThemeBasicModule], |
|
|
|
@ -26,6 +30,10 @@ export class ThemeBasicTestingModule { |
|
|
|
provide: VALIDATION_TARGET_SELECTOR, |
|
|
|
useValue: '.form-group', |
|
|
|
}, |
|
|
|
{ |
|
|
|
provide: VALIDATION_INVALID_CLASSES, |
|
|
|
useValue: 'is-invalid', |
|
|
|
}, |
|
|
|
], |
|
|
|
}; |
|
|
|
} |
|
|
|
|