Skip to content

Commit a8ab23f

Browse files
authored
Change readme section about ToastContainerModule to ToastContainerDirective (#1003)
1 parent 8a6965b commit a8ab23f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ export interface ActiveToast {
275275
### Put toasts in your own container
276276

277277
Put toasts in a specific div inside your application. This should probably be
278-
somewhere that doesn't get deleted. Add `ToastContainerModule` to the ngModule
278+
somewhere that doesn't get deleted. Add `ToastContainerDirective` to the ngModule
279279
where you need the directive available. Make sure that your container has
280280
an `aria-live="polite"` attribute, so that any time a toast is injected into
281281
the container it is announced by screen readers.
@@ -285,7 +285,7 @@ import { BrowserModule } from '@angular/platform-browser';
285285
import { NgModule } from '@angular/core';
286286
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
287287

288-
import { ToastrModule, ToastContainerModule } from 'ngx-toastr';
288+
import { ToastrModule, ToastContainerDirective } from 'ngx-toastr';
289289

290290
import { AppComponent } from './app.component';
291291

@@ -296,7 +296,7 @@ import { AppComponent } from './app.component';
296296
BrowserAnimationsModule,
297297

298298
ToastrModule.forRoot({ positionClass: 'inline' }),
299-
ToastContainerModule,
299+
ToastContainerDirective,
300300
],
301301
providers: [],
302302
bootstrap: [AppComponent],

0 commit comments

Comments
 (0)