1
1
/*
2
2
* RERO angular core
3
- * Copyright (C) 2020 RERO
3
+ * Copyright (C) 2020-2024 RERO
4
4
*
5
5
* This program is free software: you can redistribute it and/or modify
6
6
* it under the terms of the GNU Affero General Public License as published by
@@ -20,7 +20,7 @@ import { FormsModule } from '@angular/forms';
20
20
import { BrowserModule } from '@angular/platform-browser' ;
21
21
import { BrowserAnimationsModule } from '@angular/platform-browser/animations' ;
22
22
import { TranslateLoader as BaseTranslateLoader , TranslateModule } from '@ngx-translate/core' ;
23
- import { CoreConfigService , RecordModule , TranslateLoader } from '@rero/ng-core' ;
23
+ import { CoreConfigService , RecordModule , RecordService , TranslateLoader } from '@rero/ng-core' ;
24
24
import { defineLocale } from 'ngx-bootstrap/chronos' ;
25
25
import { CollapseModule } from 'ngx-bootstrap/collapse' ;
26
26
import { BsLocaleService } from 'ngx-bootstrap/datepicker' ;
@@ -34,6 +34,7 @@ import { DetailComponent } from './record/document/detail/detail.component';
34
34
import { DocumentComponent } from './record/document/document.component' ;
35
35
import { EditorComponent } from './record/editor/editor.component' ;
36
36
import { SearchBarComponent } from './search-bar/search-bar.component' ;
37
+ import { RecordServiceMock } from './record/editor/record-service-mock' ;
37
38
38
39
@NgModule ( {
39
40
declarations : [
@@ -66,7 +67,11 @@ import { SearchBarComponent } from './search-bar/search-bar.component';
66
67
provide : CoreConfigService ,
67
68
useClass : AppConfigService
68
69
} ,
69
- BsLocaleService
70
+ BsLocaleService ,
71
+ {
72
+ provide : RecordService ,
73
+ useClass : RecordServiceMock
74
+ }
70
75
] ,
71
76
bootstrap : [ AppComponent ]
72
77
} )
0 commit comments