[ADF-1548] deprecate the usage of the "forRoot" methods in modules (#2344)

* remove CoreModule.forRoot

* remove forRoot methods

* fix form issues (lint)
This commit is contained in:
Denys Vuika
2017-09-18 14:35:41 +01:00
committed by Eugenio Romano
parent cd46a589e1
commit 95d6a04f99
73 changed files with 120 additions and 282 deletions

View File

@@ -15,7 +15,7 @@
* limitations under the License.
*/
import { ModuleWithProviders, NgModule } from '@angular/core';
import { NgModule } from '@angular/core';
import { CoreModule, TRANSLATION_PROVIDER } from 'ng2-alfresco-core';
import { MaterialModule } from './src/material.module';
@@ -66,10 +66,4 @@ export const UPLOAD_DIRECTIVES: any[] = [
...UPLOAD_DIRECTIVES
]
})
export class UploadModule {
static forRoot(): ModuleWithProviders {
return {
ngModule: UploadModule
};
}
}
export class UploadModule {}

View File

@@ -61,7 +61,7 @@ describe('UploadButtonComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
CoreModule.forRoot()
CoreModule
],
declarations: [
UploadButtonComponent

View File

@@ -68,7 +68,7 @@ describe('UploadDragAreaComponent', () => {
beforeEach(async(() => {
TestBed.configureTestingModule({
imports: [
CoreModule.forRoot()
CoreModule
],
declarations: [
FileDraggableDirective,