Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(all): remove forRoot() deprecations. #534

Merged
merged 2 commits into from
May 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/app/components/components/http/http.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h3>Setup:</h3>

@NgModule({
imports: [
HttpModule, /* or CovalentCoreModule.forRoot() */
HttpModule, /* or CovalentCoreModule */
CovalentHttpModule.forRoot({
interceptors: [{
interceptor: CustomInterceptor, paths: ['**'],
Expand Down
12 changes: 1 addition & 11 deletions src/platform/core/chips/chips.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,5 @@ export { TdChipsComponent } from './chips.component';
],
})
export class CovalentChipsModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentChipsModule,
providers: [],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/common/common.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,5 @@ export { TdTimeAgoPipe, TdTimeDifferencePipe,
],
})
export class CovalentCommonModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentCommonModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/data-table/data-table.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,5 @@ export { TdDataTableTableComponent } from './data-table-table/data-table-table.c
],
})
export class CovalentDataTableModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentDataTableModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/dialogs/dialogs.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,5 @@ export { TdDialogService, TdDialogComponent, TdDialogTitleDirective,
],
})
export class CovalentDialogsModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentDialogsModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/expansion-panel/expansion-panel.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,5 @@ export { TdExpansionPanelComponent } from './expansion-panel.component';
],
})
export class CovalentExpansionPanelModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentExpansionPanelModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/file/file.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,5 @@ export { TdFileService, IUploadOptions } from './services/file.service';
],
})
export class CovalentFileModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentFileModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,5 @@ export * from './steps/steps.module';
],
})
export class CovalentCoreModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentCoreModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/json-formatter/json-formatter.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,5 @@ export { TdJsonFormatterComponent } from './json-formatter.component';
],
})
export class CovalentJsonFormatterModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentJsonFormatterModule,
providers: [],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/layout/layout.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,5 @@ export { TdLayoutComponent, TdLayoutNavComponent, TdLayoutNavListComponent,
],
})
export class CovalentLayoutModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentLayoutModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/loading/loading.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,5 @@ export { TdLoadingService, ITdLoadingConfig } from './services/loading.service';
],
})
export class CovalentLoadingModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentLoadingModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/media/media.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,5 @@ export { TdMediaService, TdMediaToggleDirective };
],
})
export class CovalentMediaModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentMediaModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/menu/menu.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,5 @@ export { TdMenuComponent } from './menu.component';
],
})
export class CovalentMenuModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentMenuModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/notifications/notifications.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,5 @@ export { TdNotificationCountComponent, TdNotificationCountPositionX, TdNotificat
],
})
export class CovalentNotificationsModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentNotificationsModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/paging/paging.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,5 @@ export { TdPagingBarComponent, IPageChangeEvent } from './paging-bar.component';
],
})
export class CovalentPagingModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentPagingModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/search/search.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,5 @@ export { TdSearchInputComponent } from './search-input/search-input.component';
],
})
export class CovalentSearchModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentSearchModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/core/steps/steps.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,5 @@ export { TdStepsComponent, IStepChangeEvent, StepMode } from './steps.component'
],
})
export class CovalentStepsModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentStepsModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/dynamic-forms/dynamic-forms.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,5 @@ const TD_DYNAMIC_FORMS_ENTRY_COMPONENTS: Type<any>[] = [
entryComponents: [ TD_DYNAMIC_FORMS_ENTRY_COMPONENTS ],
})
export class CovalentDynamicFormsModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentDynamicFormsModule,
providers: [ ],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/highlight/highlight.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,5 @@ import { TdHighlightComponent } from './highlight.component';
],
})
export class CovalentHighlightModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentHighlightModule,
providers: [],
};
}

}
12 changes: 1 addition & 11 deletions src/platform/markdown/markdown.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,5 @@ import { TdMarkdownComponent } from './markdown.component';
],
})
export class CovalentMarkdownModule {
/**
* @deprecated in 1.0.0-beta.3
*
* Please use without calling forRoot()
*/
static forRoot(): ModuleWithProviders {
return {
ngModule: CovalentMarkdownModule,
providers: [],
};
}

}