diff --git a/docs/GETTING_STARTED.md b/docs/GETTING_STARTED.md index 46cf2efa5c..c95277d956 100644 --- a/docs/GETTING_STARTED.md +++ b/docs/GETTING_STARTED.md @@ -36,7 +36,7 @@ npm install --save https://github.com/Teradata/covalent-nightly.git **src/app/app.module.ts** ```ts -import { CovalentCoreModule } from '@covalent/core'; +import { CovalentLayoutModule, CovalentStepsModule /*, any other modules */ } from '@covalent/core'; // (optional) Additional Covalent Modules imports import { CovalentHttpModule } from '@covalent/http'; import { CovalentHighlightModule } from '@covalent/highlight'; @@ -45,7 +45,8 @@ import { CovalentDynamicFormsModule } from '@covalent/dynamic-forms'; // other imports @NgModule({ imports: [ - CovalentCoreModule, + CovalentLayoutModule, + CovalentStepsModule, // (optional) Additional Covalent Modules imports CovalentHttpModule.forRoot(), CovalentHighlightModule, diff --git a/karma.conf.js b/karma.conf.js index c2564cd051..3c4d76cae9 100644 --- a/karma.conf.js +++ b/karma.conf.js @@ -24,7 +24,9 @@ module.exports = function (config) { } }, files: [ - { pattern: './src/test.ts', watched: false } + {pattern: './src/test.ts', watched: false}, + // Include a Material theme in the test suite. + {pattern: 'node_modules/@angular/material/prebuilt-themes/indigo-pink.css', included: true, watched: true}, ], preprocessors: { './src/test.ts': ['@angular/cli'] diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 83a8243af3..2adb6d937c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -14,7 +14,9 @@ import { LayoutsModule } from './components/layouts/'; import { StyleGuideModule } from './components/style-guide/'; import { appRoutes, appRoutingProviders } from './app.routes'; -import { CovalentCoreModule } from '../platform/core'; +import { MdButtonModule, MdListModule, MdIconModule, MdCardModule, MdCoreModule, MdMenuModule } from '@angular/material'; + +import { CovalentLayoutModule, CovalentExpansionPanelModule, CovalentNotificationsModule, CovalentMenuModule } from '../platform/core'; import { CovalentHighlightModule } from '../platform/highlight'; import { CovalentHttpModule } from '../platform/http'; import { CovalentMarkdownModule } from '../platform/markdown'; @@ -35,7 +37,18 @@ import { getSelectedLanguage, createTranslateLoader } from './utilities/translat BrowserModule, HttpModule, JsonpModule, - CovalentCoreModule, + /** Material Modules */ + MdCoreModule, + MdButtonModule, + MdListModule, + MdIconModule, + MdCardModule, + MdMenuModule, + /** Covalent Modules */ + CovalentLayoutModule, + CovalentExpansionPanelModule, + CovalentNotificationsModule, + CovalentMenuModule, CovalentHttpModule.forRoot(), CovalentHighlightModule, CovalentMarkdownModule, diff --git a/src/app/components/components/chips/chips.component.html b/src/app/components/components/chips/chips.component.html index bb7921db8c..9ccf8af804 100644 --- a/src/app/components/components/chips/chips.component.html +++ b/src/app/components/components/chips/chips.component.html @@ -195,7 +195,7 @@

Setup:

import { CovalentChipsModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentChipsModule, // or CovalentCoreModule (included inside of it) + CovalentChipsModule, ... ], ... diff --git a/src/app/components/components/components.module.ts b/src/app/components/components/components.module.ts index 27c44c6c52..b4fb3e1e4a 100644 --- a/src/app/components/components/components.module.ts +++ b/src/app/components/components/components.module.ts @@ -1,4 +1,8 @@ import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; import { componentsRoutes } from './components.routes'; @@ -31,7 +35,15 @@ import { NgxTranslateDemoComponent } from './ngx-translate/ngx-translate.compone import { NgxChartsModule } from '@swimlane/ngx-charts'; import { TranslateModule } from '@ngx-translate/core'; -import { CovalentCoreModule } from '../../../platform/core'; +import { MdButtonModule, MdListModule, MdIconModule, MdCardModule, MdMenuModule, MdInputModule, MdButtonToggleModule, + MdProgressSpinnerModule, MdSelectModule, MdSlideToggleModule, MdDialogModule, MdSnackBarModule, MdToolbarModule, + MdTabsModule, MdSidenavModule, MdTooltipModule, MdCheckboxModule, MdRadioModule, MdCoreModule, MdAutocompleteModule, + MdProgressBarModule, MdSliderModule, MdChipsModule, MdGridListModule, MdRippleModule } from '@angular/material'; + +import { CovalentCommonModule, CovalentLayoutModule, CovalentMediaModule, CovalentExpansionPanelModule, CovalentFileModule, + CovalentStepsModule, CovalentLoadingModule, CovalentDialogsModule, CovalentSearchModule, CovalentPagingModule, + CovalentNotificationsModule, CovalentMenuModule, CovalentChipsModule, CovalentDataTableModule, CovalentJsonFormatterModule, + } from '../../../platform/core'; import { CovalentHighlightModule } from '../../../platform/highlight'; import { CovalentMarkdownModule } from '../../../platform/markdown'; import { CovalentDynamicFormsModule } from '../../../platform/dynamic-forms'; @@ -68,7 +80,53 @@ import { DocumentationToolsModule } from '../../documentation-tools'; NgxTranslateDemoComponent, ], imports: [ - CovalentCoreModule, + /** Angular Modules */ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + /** Material Modules */ + MdCoreModule, + MdButtonModule, + MdListModule, + MdIconModule, + MdCardModule, + MdMenuModule, + MdInputModule, + MdSelectModule, + MdButtonToggleModule, + MdSlideToggleModule, + MdProgressSpinnerModule, + MdDialogModule, + MdSnackBarModule, + MdToolbarModule, + MdTabsModule, + MdSidenavModule, + MdTooltipModule, + MdCheckboxModule, + MdRadioModule, + MdAutocompleteModule, + MdSliderModule, + MdProgressBarModule, + MdChipsModule, + MdGridListModule, + MdRippleModule, + /** Covalent Modules */ + CovalentCommonModule, + CovalentLayoutModule, + CovalentMediaModule, + CovalentExpansionPanelModule, + CovalentStepsModule, + CovalentDialogsModule, + CovalentLoadingModule, + CovalentSearchModule, + CovalentPagingModule, + CovalentFileModule, + CovalentNotificationsModule, + CovalentMenuModule, + CovalentChipsModule, + CovalentJsonFormatterModule, + CovalentDataTableModule, CovalentHighlightModule, CovalentMarkdownModule, CovalentDynamicFormsModule, diff --git a/src/app/components/components/data-table/data-table.component.html b/src/app/components/components/data-table/data-table.component.html index 2875f92888..a9d00e8ace 100644 --- a/src/app/components/components/data-table/data-table.component.html +++ b/src/app/components/components/data-table/data-table.component.html @@ -434,7 +434,7 @@

Setup:

import { CovalentDataTableModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentDataTableModule, // or CovalentCoreModule (included inside of it) + CovalentDataTableModule, ... ], ... diff --git a/src/app/components/components/dialogs/dialogs.component.html b/src/app/components/components/dialogs/dialogs.component.html index 759532eca0..3edb67925f 100644 --- a/src/app/components/components/dialogs/dialogs.component.html +++ b/src/app/components/components/dialogs/dialogs.component.html @@ -96,7 +96,7 @@

Setup:

@NgModule({ imports: [ - CovalentDialogsModule, // or CovalentCoreModule (included inside of it) + CovalentDialogsModule, ... ], ... diff --git a/src/app/components/components/expansion-panel/expansion-panel.component.html b/src/app/components/components/expansion-panel/expansion-panel.component.html index 7cf49d90c7..993a400654 100644 --- a/src/app/components/components/expansion-panel/expansion-panel.component.html +++ b/src/app/components/components/expansion-panel/expansion-panel.component.html @@ -225,7 +225,7 @@

Setup:

import { CovalentExpansionPanelModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentExpansionPanelModule, // or CovalentCoreModule (included inside of it) + CovalentExpansionPanelModule, ... ], ... diff --git a/src/app/components/components/http/http.component.html b/src/app/components/components/http/http.component.html index 17414f3e84..f3834b1f9d 100644 --- a/src/app/components/components/http/http.component.html +++ b/src/app/components/components/http/http.component.html @@ -85,7 +85,7 @@

Setup:

@NgModule({ imports: [ - HttpModule, /* or CovalentCoreModule */ + HttpModule, CovalentHttpModule.forRoot({ interceptors: [{ interceptor: CustomInterceptor, paths: ['**'], diff --git a/src/app/components/components/json-formatter/json-formatter.component.html b/src/app/components/components/json-formatter/json-formatter.component.html index efda9dcf41..bde840206a 100644 --- a/src/app/components/components/json-formatter/json-formatter.component.html +++ b/src/app/components/components/json-formatter/json-formatter.component.html @@ -61,7 +61,7 @@

Setup:

import { CovalentJsonFormatterModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentJsonFormatterModule, // or CovalentCoreModule (included inside of it) + CovalentJsonFormatterModule, ... ], ... diff --git a/src/app/components/components/loading/loading.component.html b/src/app/components/components/loading/loading.component.html index b2d077620e..31faaad2da 100644 --- a/src/app/components/components/loading/loading.component.html +++ b/src/app/components/components/loading/loading.component.html @@ -314,7 +314,7 @@

Setup:

@NgModule({ imports: [ - CovalentLoadingModule, // or CovalentCoreModule (included inside of it) + CovalentLoadingModule, ... ], ... diff --git a/src/app/components/components/media/media.component.html b/src/app/components/components/media/media.component.html index e81a82140e..b56dbc79dd 100644 --- a/src/app/components/components/media/media.component.html +++ b/src/app/components/components/media/media.component.html @@ -94,7 +94,7 @@

Setup:

import { CovalentMediaModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentMediaModule, // or CovalentCoreModule (included inside of it) + CovalentMediaModule, ... ], ... diff --git a/src/app/components/components/notifications/notifications.component.html b/src/app/components/components/notifications/notifications.component.html index 1939049ebb..35b3298b22 100644 --- a/src/app/components/components/notifications/notifications.component.html +++ b/src/app/components/components/notifications/notifications.component.html @@ -324,7 +324,7 @@

Setup:

import { CovalentNotificationsModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentNotificationsModule, // or CovalentCoreModule (included inside of it) + CovalentNotificationsModule, ... ], ... diff --git a/src/app/components/components/paging/paging.component.html b/src/app/components/components/paging/paging.component.html index d2a2c2722e..916f3d0eda 100644 --- a/src/app/components/components/paging/paging.component.html +++ b/src/app/components/components/paging/paging.component.html @@ -129,7 +129,7 @@

Setup:

import { CovalentPagingModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentPagingModule, // or CovalentCoreModule (included inside of it) + CovalentPagingModule, ... ], ... diff --git a/src/app/components/components/search/search.component.html b/src/app/components/components/search/search.component.html index e35f4b78c7..db557819b4 100644 --- a/src/app/components/components/search/search.component.html +++ b/src/app/components/components/search/search.component.html @@ -73,7 +73,7 @@

Setup:

import { CovalentSearchModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentSearchModule, // or CovalentCoreModule (included inside of it) + CovalentSearchModule, ... ], ... diff --git a/src/app/components/components/steps/steps.component.html b/src/app/components/components/steps/steps.component.html index 3a997ebf2f..fdf1ea6571 100644 --- a/src/app/components/components/steps/steps.component.html +++ b/src/app/components/components/steps/steps.component.html @@ -159,7 +159,7 @@

Setup:

import { CovalentStepsModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentStepsModule, // or CovalentCoreModule (included inside of it) + CovalentStepsModule, ... ], ... diff --git a/src/app/components/docs/docs.module.ts b/src/app/components/docs/docs.module.ts index 27d1a5d194..e30cf545cf 100644 --- a/src/app/components/docs/docs.module.ts +++ b/src/app/components/docs/docs.module.ts @@ -1,4 +1,7 @@ import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { CommonModule } from '@angular/common'; import { docsRoutes } from './docs.routes'; @@ -16,7 +19,9 @@ import { MockDataComponent } from './mock-data/mock-data.component'; import { DocumentationToolsModule } from '../../documentation-tools'; -import { CovalentCoreModule } from '../../../platform/core'; +import { MdButtonModule, MdListModule, MdIconModule, MdCardModule, MdToolbarModule, MdCoreModule } from '@angular/material'; + +import { CovalentLayoutModule, CovalentMediaModule } from '../../../platform/core'; import { CovalentHighlightModule } from '../../../platform/highlight'; @NgModule({ @@ -34,7 +39,20 @@ import { CovalentHighlightModule } from '../../../platform/highlight'; MockDataComponent, ], imports: [ - CovalentCoreModule, + /** Angular Modules */ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + /** Material Modules */ + MdCoreModule, + MdButtonModule, + MdListModule, + MdIconModule, + MdCardModule, + MdToolbarModule, + /** Covalent Modules */ + CovalentLayoutModule, + CovalentMediaModule, CovalentHighlightModule, DocumentationToolsModule, docsRoutes, diff --git a/src/app/components/layouts/layouts.module.ts b/src/app/components/layouts/layouts.module.ts index 9de6ccb3b5..bef630e972 100644 --- a/src/app/components/layouts/layouts.module.ts +++ b/src/app/components/layouts/layouts.module.ts @@ -1,4 +1,7 @@ import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { CommonModule } from '@angular/common'; import { layoutsRoutes } from './layouts.routes'; @@ -9,7 +12,9 @@ import { NavListComponent } from './nav-list/nav-list.component'; import { CardOverComponent } from './card-over/card-over.component'; import { ManageListComponent } from './manage-list/manage-list.component'; -import { CovalentCoreModule } from '../../../platform/core'; +import { MdButtonModule, MdListModule, MdIconModule, MdCardModule, MdToolbarModule, MdCoreModule } from '@angular/material'; + +import { CovalentLayoutModule, CovalentExpansionPanelModule, CovalentStepsModule, CovalentMediaModule } from '../../../platform/core'; import { CovalentHighlightModule } from '../../../platform/highlight'; import { DocumentationToolsModule } from '../../documentation-tools'; @@ -24,7 +29,22 @@ import { DocumentationToolsModule } from '../../documentation-tools'; ManageListComponent, ], imports: [ - CovalentCoreModule, + /** Angular Modules */ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + /** Material Modules */ + MdCoreModule, + MdButtonModule, + MdListModule, + MdIconModule, + MdCardModule, + MdToolbarModule, + /** Covalent Modules */ + CovalentLayoutModule, + CovalentExpansionPanelModule, + CovalentStepsModule, + CovalentMediaModule, CovalentHighlightModule, DocumentationToolsModule, layoutsRoutes, diff --git a/src/app/components/style-guide/style-guide.module.ts b/src/app/components/style-guide/style-guide.module.ts index 670c500045..5337cb289d 100644 --- a/src/app/components/style-guide/style-guide.module.ts +++ b/src/app/components/style-guide/style-guide.module.ts @@ -1,4 +1,8 @@ import { NgModule } from '@angular/core'; +import { BrowserModule } from '@angular/platform-browser'; +import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; import { styleGuideRoutes } from './style-guide.routes'; @@ -15,7 +19,11 @@ import { UtilityStylesComponent } from './utility-styles/utility-styles.componen import { ResourcesComponent } from './resources/resources.component'; import { NavigationDrawerComponent } from './navigation-drawer/navigation-drawer.component'; -import { CovalentCoreModule } from '../../../platform/core'; +import { MdButtonModule, MdListModule, MdIconModule, MdCardModule, MdToolbarModule, MdCoreModule, + MdInputModule, MdMenuModule, MdSelectModule } from '@angular/material'; + +import { CovalentLayoutModule, CovalentMediaModule, CovalentSearchModule, CovalentPagingModule, + CovalentExpansionPanelModule } from '../../../platform/core'; import { CovalentHighlightModule } from '../../../platform/highlight'; @NgModule({ @@ -34,7 +42,27 @@ import { CovalentHighlightModule } from '../../../platform/highlight'; NavigationDrawerComponent, ], imports: [ - CovalentCoreModule, + /** Angular Modules */ + BrowserModule, + BrowserAnimationsModule, + CommonModule, + FormsModule, + /** Material Modules */ + MdCoreModule, + MdButtonModule, + MdListModule, + MdIconModule, + MdCardModule, + MdToolbarModule, + MdInputModule, + MdMenuModule, + MdSelectModule, + /** Covalent Modules */ + CovalentLayoutModule, + CovalentMediaModule, + CovalentSearchModule, + CovalentPagingModule, + CovalentExpansionPanelModule, CovalentHighlightModule, styleGuideRoutes, ], diff --git a/src/platform/core/README.md b/src/platform/core/README.md index b13f1b7159..62377a6d87 100644 --- a/src/platform/core/README.md +++ b/src/platform/core/README.md @@ -16,13 +16,14 @@ npm i -save @covalent/core ## Setup -Import the **[CovalentCoreModule]** in your NgModule: +Import the modules from `@covalent/core` as needed in your NgModule: ```typescript -import { CovalentCoreModule } from '@covalent/core'; +import { CovalentLayoutModule, CovalentStepsModule /* and many more */ } from '@covalent/core'; @NgModule({ imports: [ - CovalentCoreModule, + CovalentLayoutModule, + CovalentStepsModule, ... ], ... diff --git a/src/platform/core/chips/README.md b/src/platform/core/chips/README.md index d6f220154c..4e7410a4aa 100644 --- a/src/platform/core/chips/README.md +++ b/src/platform/core/chips/README.md @@ -25,7 +25,7 @@ Import the [CovalentChipsModule] in your NgModule: import { CovalentChipsModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentChipsModule, // or CovalentCoreModule (included inside of it) + CovalentChipsModule, ... ], ... diff --git a/src/platform/core/data-table/README.md b/src/platform/core/data-table/README.md index 8449a0b61b..c8a84971af 100644 --- a/src/platform/core/data-table/README.md +++ b/src/platform/core/data-table/README.md @@ -30,7 +30,7 @@ Import the [CovalentDataTableModule] in your NgModule: import { CovalentDataTableModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentDataTableModule, // or CovalentCoreModule (included inside of it) + CovalentDataTableModule, ... ], ... diff --git a/src/platform/core/file/file-input/README.md b/src/platform/core/file/file-input/README.md index 290ea8de36..251b08b337 100644 --- a/src/platform/core/file/file-input/README.md +++ b/src/platform/core/file/file-input/README.md @@ -54,7 +54,7 @@ import { CovalentFileModule } from '@covalent/core'; @NgModule({ imports: [ HttpModule, - CovalentFileModule, // or CovalentCoreModule (included inside of it) + CovalentFileModule, ... ], ... diff --git a/src/platform/core/file/file-upload/README.md b/src/platform/core/file/file-upload/README.md index 9903ddd071..db2d0b8444 100644 --- a/src/platform/core/file/file-upload/README.md +++ b/src/platform/core/file/file-upload/README.md @@ -64,7 +64,7 @@ import { CovalentFileModule } from '@covalent/core'; @NgModule({ imports: [ HttpModule, - CovalentFileModule, // or CovalentCoreModule (included inside of it) + CovalentFileModule, ... ], ... diff --git a/src/platform/core/index.ts b/src/platform/core/index.ts index 187be5b41a..623a4d4764 100644 --- a/src/platform/core/index.ts +++ b/src/platform/core/index.ts @@ -111,58 +111,3 @@ export * from './search/search.module'; import { CovalentStepsModule } from './steps/steps.module'; export * from './steps/steps.module'; - -/** - * @deprecated in 1.0.0-beta.3-1 - */ -@NgModule({ - imports: [ - HttpModule, - JsonpModule, - FormsModule, - CommonModule, - MaterialModule, - FlexLayoutModule, - CovalentCommonModule, - CovalentChipsModule, - CovalentDataTableModule, - CovalentDialogsModule, - CovalentExpansionPanelModule, - CovalentFileModule, - CovalentJsonFormatterModule, - CovalentLayoutModule, - CovalentLoadingModule, - CovalentMediaModule, - CovalentMenuModule, - CovalentNotificationsModule, - CovalentPagingModule, - CovalentSearchModule, - CovalentStepsModule, - ], - exports: [ - HttpModule, - JsonpModule, - FormsModule, - CommonModule, - MaterialModule, - FlexLayoutModule, - CovalentCommonModule, - CovalentChipsModule, - CovalentDataTableModule, - CovalentDialogsModule, - CovalentExpansionPanelModule, - CovalentFileModule, - CovalentJsonFormatterModule, - CovalentLayoutModule, - CovalentLoadingModule, - CovalentMediaModule, - CovalentMenuModule, - CovalentNotificationsModule, - CovalentPagingModule, - CovalentSearchModule, - CovalentStepsModule, - ], -}) -export class CovalentCoreModule { - -} diff --git a/src/platform/core/json-formatter/README.md b/src/platform/core/json-formatter/README.md index d2e2ee6417..730b160bf9 100644 --- a/src/platform/core/json-formatter/README.md +++ b/src/platform/core/json-formatter/README.md @@ -25,7 +25,7 @@ Import the [CovalentJsonFormatterModule] in your NgModule: import { CovalentJsonFormatterModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentJsonFormatterModule, // or CovalentCoreModule (included inside of it) + CovalentJsonFormatterModule, ... ], ... diff --git a/src/platform/core/layout/README.md b/src/platform/core/layout/README.md index 9196b3f644..42d3f70159 100644 --- a/src/platform/core/layout/README.md +++ b/src/platform/core/layout/README.md @@ -20,7 +20,7 @@ Import the **[CovalentLayoutModule]** in your NgModule: import { CovalentLayoutModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentLayoutModule, // or CovalentCoreModule + CovalentLayoutModule, ... ], ... diff --git a/src/platform/core/notifications/README.md b/src/platform/core/notifications/README.md index 0ffb81ff8f..bcdddb8112 100644 --- a/src/platform/core/notifications/README.md +++ b/src/platform/core/notifications/README.md @@ -21,7 +21,7 @@ Import the [CovalentNotificationsModule] in your NgModule: import { CovalentNotificationsModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentNotificationsModule, // or CovalentCoreModule (included inside of it) + CovalentNotificationsModule, ... ], ... diff --git a/src/platform/core/paging/README.md b/src/platform/core/paging/README.md index fa4f316dbd..a2d3fc7b06 100644 --- a/src/platform/core/paging/README.md +++ b/src/platform/core/paging/README.md @@ -39,7 +39,7 @@ Import the [CovalentPagingModule] in your NgModule: import { CovalentPagingModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentPagingModule, // or CovalentCoreModule (included inside of it) + CovalentPagingModule, ... ], ... diff --git a/src/platform/core/search/README.md b/src/platform/core/search/README.md index c3777cbe53..ac3850702d 100644 --- a/src/platform/core/search/README.md +++ b/src/platform/core/search/README.md @@ -60,7 +60,7 @@ Import the [CovalentSearchModule] in your NgModule: import { CovalentSearchModule } from '@covalent/core'; @NgModule({ imports: [ - CovalentSearchModule, // or CovalentCoreModule (included inside of it) + CovalentSearchModule, ... ], ... diff --git a/src/platform/dynamic-forms/dynamic-forms.component.spec.ts b/src/platform/dynamic-forms/dynamic-forms.component.spec.ts index 91d46a3121..2b9d7e5e5b 100644 --- a/src/platform/dynamic-forms/dynamic-forms.component.spec.ts +++ b/src/platform/dynamic-forms/dynamic-forms.component.spec.ts @@ -8,7 +8,6 @@ import 'hammerjs'; import { Component } from '@angular/core'; import { NoopAnimationsModule } from '@angular/platform-browser/animations'; import { By } from '@angular/platform-browser'; -import { CovalentCoreModule } from '../core'; import { TdDynamicType, TdDynamicElement, ITdDynamicElementConfig, TdDynamicElementComponent, TdDynamicFormsComponent, CovalentDynamicFormsModule } from './'; @@ -18,7 +17,6 @@ describe('Component: TdDynamicForms', () => { TestBed.configureTestingModule({ imports: [ NoopAnimationsModule, - CovalentCoreModule, CovalentDynamicFormsModule, ], declarations: [ diff --git a/src/platform/http/README.md b/src/platform/http/README.md index 60f234579a..5d60bdf680 100644 --- a/src/platform/http/README.md +++ b/src/platform/http/README.md @@ -88,7 +88,7 @@ const httpInterceptorProviders: Type[] = [ @NgModule({ imports: [ - HttpModule, /* or CovalentCoreModule */ + HttpModule, CovalentHttpModule.forRoot({ interceptors: [{ interceptor: CustomInterceptor, paths: ['**'],