feat: replace custom notify to ngx-toastr
#https://github.com/scttcper/ngx-toastr
This commit is contained in:
@ -4,7 +4,23 @@ import {provideRouter} from '@angular/router';
|
||||
import {routes} from './app.routes';
|
||||
import {provideAnimationsAsync} from '@angular/platform-browser/animations/async';
|
||||
import {provideHttpClient} from "@angular/common/http";
|
||||
import {provideToastr} from "ngx-toastr";
|
||||
|
||||
export const appConfig: ApplicationConfig = {
|
||||
providers: [provideRouter(routes), provideAnimationsAsync(), provideHttpClient()]
|
||||
providers: [
|
||||
provideRouter(routes),
|
||||
provideAnimationsAsync(),
|
||||
provideHttpClient(),
|
||||
provideToastr({
|
||||
timeOut: 5000,
|
||||
extendedTimeOut: 2000,
|
||||
positionClass: "toast-top-right",
|
||||
progressBar: true,
|
||||
progressAnimation: "decreasing",
|
||||
newestOnTop: true,
|
||||
tapToDismiss: true,
|
||||
disableTimeOut: false,
|
||||
autoDismiss: true,
|
||||
maxOpened: 5
|
||||
})]
|
||||
};
|
||||
|
Reference in New Issue
Block a user