Skip to content

Commit

Permalink
fix: removed browserModule imports from dbx-web
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Burgman committed Jan 30, 2022
1 parent 98c1d80 commit 84cbdf2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/dbx-web/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './lib';
export * from './lib/dbx-web.module';
4 changes: 2 additions & 2 deletions packages/dbx-web/src/lib/button/button.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import { MatButtonModule } from '@angular/material/button';
import { MatProgressButtonsModule } from 'mat-progress-buttons';
import { DbNgxButtonComponent } from './button.component';
import { DbNgxButtonSpacerComponent } from './button.spacer.component';
import { BrowserModule } from '@angular/platform-browser';
import { CommonModule } from '@angular/common';

@NgModule({
imports: [
BrowserModule,
CommonModule,
MatIconModule,
MatButtonModule,
MatProgressButtonsModule
Expand Down
14 changes: 7 additions & 7 deletions packages/dbx-web/src/lib/dbx-web.module.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { DbNgxLoadingModule } from './loading/loading.module';
import { BrowserModule } from '@angular/platform-browser';
import { MatProgressButtonsModule } from 'mat-progress-buttons';
import { NgModule } from '@angular/core';
import { DbNgxButtonModule } from './button';
Expand All @@ -14,14 +13,15 @@ import { DbNgxActionModule } from './action';
})
export class DbNgxWebModule { }

/**
* Should only be imported once in the root app.
*
* Pre-configures the following modules:
* - MatProgressButtonsModule
*/
@NgModule({
imports: [
BrowserModule,
DbNgxWebModule,
MatProgressButtonsModule.forRoot()
],
exports: [
DbNgxWebModule
]
})
export class DbNgxSharedWebModule { }
export class DbNgxWebRootModule { }
1 change: 1 addition & 0 deletions packages/dbx-web/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ export * from './loading';
export * from './layout';
export * from './router';
export * from './text';
export * from './dbx-web.module';
4 changes: 2 additions & 2 deletions packages/dbx-web/src/lib/loading/loading.module.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import { CommonModule } from '@angular/common';
import { NgModule } from '@angular/core';
import { DbNgxBasicLoadingComponent } from './basic-loading.component';
import { DbNgxLoadingProgressComponent } from './loading-progress.component';
import { MatProgressBarModule } from '@angular/material/progress-bar';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { DbNgxLoadingComponent } from './loading.component';
import { BrowserModule } from '@angular/platform-browser';
import { DbNgxReadableErrorModule } from '../error';

@NgModule({
imports: [
BrowserModule,
CommonModule,
DbNgxReadableErrorModule,
MatProgressSpinnerModule,
MatProgressBarModule
Expand Down

0 comments on commit 84cbdf2

Please sign in to comment.