Questions tagged [ngx-toastr]
46 questions
0
votes
1 answer
ERESOLVE unable to resolve dependency tree while installing ngx-toastr on angular 13
Getting below error while trying to install ngx-toastr on my angular 13
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: p4-padmin@0.0.0
npm ERR! Found:…

Gaurav Kandpal
- 1,250
- 2
- 15
- 33
0
votes
1 answer
Place Toastr toasts in container in specific component
Toastr allows you to globally define container, where toasts are displayed in this way:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from…

TalVik99
- 91
- 9
0
votes
1 answer
Ngx-toastr, Unable to focus on it
I have purchased this theme for angular and they have changed the default view of ngx-toastr.
Everything is working fine but they have disabled focus on toast because of that I can't perform any kind of action on it. I have tried a lot of properties…

Paras Bartwal
- 15
- 3
0
votes
0 answers
Is there a way to display notifications in another tab?
I have data that is updated every five minutes and if new records appear, a notification pops up.
Is it possible to somehow make the notification appear regardless of which browser tab the person is on?
loadInfo(): void {
timer(0,…
0
votes
1 answer
Can't inject ngx-toastr service in HttpInterceptor
I'm developing a web app with Angular v. 12.2.4.
I am trying to display notification toasts upon HTTP errors, using the ngx-toastr library (v. 14.2.1). Using the Angular HTTP interceptor functionality, I'm trying to inject the ToasterService into my…

user3673449
- 347
- 2
- 5
- 20
0
votes
1 answer
how to change the width of ngx-toastr in angular 9
I have ngx-toastr message notification from npm.
Is there a way to change the size of message container?
when I open my application in small device, then toastr notification is too big.
ToastrModule.forRoot({
timeOut: 1000,
…

Durgesh gupta
- 31
- 1
- 8
0
votes
2 answers
How do I override width value of ngx-toastr container?
I'm looking for overriding the width size of the toastr container to 500 px instead of the default 300px.
Is there any way to achieve it without extending the component and create a new custom one?
Here is the css portion of toastr.css that is…

Johnny Goodman
- 23
- 4
0
votes
1 answer
Angular 2 Toastr Not Working in Global Error Handler
I am trying to use ngx-toastr in my global error handler, but it is giving me the following error.
Error: Cannot instantiate cyclic dependency! ApplicationRef
at throwCyclicDependencyError (core.js:8072)
at R3Injector.hydrate (core.js:17049)
at…

Evil Tech
- 304
- 2
- 13
0
votes
1 answer
ngx-toastr memory leak timeout
I have a memory leak issue in my application somewhere and I have code all over my project that looks like this
this.toastr.success("message sent!", "", {
timeOut: 2000
});
instead of
this.timeout =…

Andy
- 185
- 2
- 6
- 22
0
votes
2 answers
Toastr service not working for Internet Explorer
I have used ngx-toastr module to show toastr in my angular application It is working fine with Chorme,Firefox but not working in IE ie it is working in ngOninit() function but not in any other function
.
import { ToastrModule } from 'ngx-toastr';

Sanchita Raut
- 1
- 1
0
votes
1 answer
Core-js: Module not found for object.keys
In order to fix the ngx-toaster issue in IE https://github.com/scttcper/ngx-toastr/issues/673
I need the following import error in my pollyfills.ts
import 'core-js/features/object/keys'
I am getting Module not found error
Does anyone know the…

shamon shamsudeen
- 5,466
- 17
- 64
- 129
0
votes
0 answers
Ngx-toaster not showing in IE,and safari
I am using ngx-toaster for showing alerts in my angular application
But it's not showing in IE and safari (All versions), This already addressed here and it seems like a polyfill issue https://github.com/scttcper/ngx-toastr/issues/673.
So I've…

shamon shamsudeen
- 5,466
- 17
- 64
- 129
-1
votes
1 answer
I get an error in Angular when I "npm install ngx-toastr --save"
I wanted to install the ToastrService but I get an error when installing it.
does anybody know why that happens?
I saw, that it might be the angular version.
Does anybody know what i could do to resolve that issue?
thx in advance!
~ Max

Max
- 11
- 3
-1
votes
2 answers
i am using ngx toastr in angular 8 its showing below error if anyone knowns the solution tell me
ERROR Error: Uncaught (in promise): NullInjectorError: StaticInjectorError(AppModule)[ToastrService]:
StaticInjectorError(Platform: core)[ToastrService]:
NullInjectorError: No provider for ToastrService!
NullInjectorError:…
-1
votes
1 answer
How to expand toastr thing in Angular 2?
I have a ToastrService imported from 'ngx-toastr' in my Angular 2 app. The problem is that the text which I show there does not fit in, and it gets cut.
Can I expand it somewhere?
Eg, I can set up some params in toastrConfig:
const toastrConfig:…

Sofia Bo
- 679
- 1
- 10
- 20