Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 0ad88ef

Browse files
NgWizardModule moved to core module
1 parent 325116f commit 0ad88ef

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

‎src/AspnetRun.Web/src/app/app.module.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,13 @@ import { AppRoutingModule } from './app-routing.module';
88
import { CoreModule } from './core/core.module';
99
import { SharedModule } from './shared/shared.module';
1010

11-
import { NgWizardModule, NgWizardConfig, THEME } from 'ng-wizard';
12-
1311
import { P404Component } from './views/error/404.component';
1412
import { P500Component } from './views/error/500.component';
1513
import { LoginComponent } from './views/login/login.component';
1614
import { RegisterComponent } from './views/register/register.component';
1715
import { DashboardComponent } from './views/dashboard/dashboard.component';
1816
import { AboutComponent } from './views/about/about.component';
1917

20-
const ngWizardConfig: NgWizardConfig = {
21-
theme: THEME.default
22-
};
23-
2418
@NgModule({
2519
declarations: [
2620
AppComponent,
@@ -37,7 +31,6 @@ const ngWizardConfig: NgWizardConfig = {
3731
AppRoutingModule, // Main routes for application
3832
CoreModule, // Singleton objects (services, components that are loaded only once, etc.)
3933
SharedModule, // Shared (multi-instance) objects
40-
NgWizardModule.forRoot(ngWizardConfig), // TODO: shall be moved to core module
4134
],
4235
providers: [],
4336
bootstrap: [AppComponent]

‎src/AspnetRun.Web/src/app/core/core.module.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ import { TabsModule } from 'ngx-bootstrap/tabs';
1919
import { RouterModule } from '@angular/router';
2020
import { CustomerDataService } from './services/customer-data.services';
2121
import { ToastrModule } from 'ngx-toastr';
22+
import { NgWizardModule, NgWizardConfig, THEME } from 'ng-wizard';
2223

2324
const APP_CONTAINERS = [LayoutComponent];
2425

26+
const ngWizardConfig: NgWizardConfig = {
27+
theme: THEME.default
28+
};
29+
2530
@NgModule({
2631
declarations: [
2732
...APP_CONTAINERS,
@@ -40,11 +45,13 @@ const APP_CONTAINERS = [LayoutComponent];
4045
PerfectScrollbarModule,
4146
BsDropdownModule.forRoot(),
4247
TabsModule.forRoot(),
48+
NgWizardModule.forRoot(ngWizardConfig),
4349
],
4450
exports: [
4551
RouterModule,
4652
HttpClientModule,
4753
NgxUiLoaderModule,
54+
NgWizardModule,
4855
LayoutComponent,
4956
],
5057
providers: [

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /