mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Pre-Angular upgrade fixes (#5709)
* code fixes * code fixes * more code fixes * even more fixes * add missing typescript for cli * rollback info drawer test changes * use npx for cli commands * restore attach providers
This commit is contained in:
@@ -47,9 +47,6 @@ describe('ClipboardDirective', () => {
|
||||
],
|
||||
declarations: [
|
||||
TestTargetClipboardComponent
|
||||
],
|
||||
providers: [
|
||||
ClipboardService
|
||||
]
|
||||
});
|
||||
|
||||
|
@@ -18,7 +18,6 @@
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { NgModule } from '@angular/core';
|
||||
import { ClipboardDirective, ClipboardComponent } from './clipboard.directive';
|
||||
import { ClipboardService } from './clipboard.service';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
|
||||
@NgModule({
|
||||
@@ -26,9 +25,6 @@ import { TranslateModule } from '@ngx-translate/core';
|
||||
CommonModule,
|
||||
TranslateModule.forChild()
|
||||
],
|
||||
providers: [
|
||||
ClipboardService
|
||||
],
|
||||
declarations: [
|
||||
ClipboardDirective,
|
||||
ClipboardComponent
|
||||
|
@@ -15,7 +15,6 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { LogService } from '../services/log.service';
|
||||
import { NotificationService } from '../notifications/services/notification.service';
|
||||
import { AppConfigService } from '../app-config/app-config.service';
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
@@ -40,10 +39,8 @@ describe('ClipboardService', () => {
|
||||
MatSnackBarModule
|
||||
],
|
||||
providers: [
|
||||
LogService,
|
||||
{ provide: TranslationService, useClass: TranslationMock },
|
||||
{ provide: AppConfigService, useClass: AppConfigServiceMock },
|
||||
NotificationService
|
||||
{ provide: AppConfigService, useClass: AppConfigServiceMock }
|
||||
]
|
||||
});
|
||||
|
||||
|
@@ -20,7 +20,7 @@ import { DOCUMENT } from '@angular/common';
|
||||
import { LogService } from '../services/log.service';
|
||||
import { NotificationService } from '../notifications/services/notification.service';
|
||||
|
||||
@Injectable()
|
||||
@Injectable({ providedIn: 'root' })
|
||||
export class ClipboardService {
|
||||
|
||||
constructor(
|
||||
|
Reference in New Issue
Block a user