Skip to content

Commit fd1e426

Browse files
committed
fix(demo): remove global config
1 parent 1cd4584 commit fd1e426

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

src/app/app.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<div class="container">
22
<h1>Ngx Bootstrap Dialog</h1>
33
<h2>{{ environment.env.npm_package_version }}</h2>
4+
45
<div class="row">
56
<div class="col">
67
<button class="btn btn-primary" (click)="openDialogAlert()">

src/app/app.module.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,12 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
33

4-
import {
5-
NGX_BOOTSTRAP_ALERT_DEFAULT_OPTIONS,
6-
NGX_BOOTSTRAP_CONFIRM_DEFAULT_OPTIONS,
7-
} from './../../projects/ngx-bootstrap-dialog/src/lib/ngx-bootstrap-dialog.config';
84
import { NgxBootstrapDialogModule } from './../../projects/ngx-bootstrap-dialog/src/lib/ngx-bootstrap-dialog.module';
95
import { AppComponent } from './app.component';
106

117
@NgModule({
128
declarations: [AppComponent],
139
imports: [BrowserModule, NgxBootstrapDialogModule],
14-
providers: [
15-
{
16-
provide: NGX_BOOTSTRAP_ALERT_DEFAULT_OPTIONS,
17-
useValue: { confirmButtonClass: 'btn btn-danger' },
18-
},
19-
{
20-
provide: NGX_BOOTSTRAP_CONFIRM_DEFAULT_OPTIONS,
21-
useValue: { confirmButtonText: 'CONFIRM' },
22-
},
23-
],
2410
bootstrap: [AppComponent],
2511
})
2612
export class AppModule {}

0 commit comments

Comments
 (0)