File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ export interface ActiveToast {
275275### Put toasts in your own container
276276
277277Put 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
279279where you need the directive available. Make sure that your container has
280280an ` aria-live="polite" ` attribute, so that any time a toast is injected into
281281the container it is announced by screen readers.
@@ -285,7 +285,7 @@ import { BrowserModule } from '@angular/platform-browser';
285285import { NgModule } from ' @angular/core' ;
286286import { BrowserAnimationsModule } from ' @angular/platform-browser/animations' ;
287287
288- import { ToastrModule , ToastContainerModule } from ' ngx-toastr' ;
288+ import { ToastrModule , ToastContainerDirective } from ' ngx-toastr' ;
289289
290290import { 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 ],
You can’t perform that action at this time.
0 commit comments