You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw issue #818 and is marked as fixed in v12.1.0 (162b64f)
But this seems to have only moved the option for newestOnTop to the IndividualConfig options.
The way that this works is if you edit the toastrService.toastrConfig.newestOnTop value.
In the demo application, the way it works is that you set the options from toastrConfig (reference object)
constructor(publictoastr: ToastrService,privaterenderer: Renderer2){this.options=this.toastr.toastrConfig;// ngModel directly changing toastrConfig (options == toastr.toastrConfig)}
...
openToast(){constopt=cloneDeep(this.options);// cloning the already changed the this.toastr.toastrConfig through this.options
From my example, (since I did not want to change it in the forRoot({...}))
this.toastrService.show(message,title,{newestOnTop: false});// did not work// to make it work I had to do the following - this.toastrService.toastrConfig.newestOnTop=false;this.toastrService.show(message,title);this.toastrService.toastrConfig.newestOnTop=true;
My question is, is this the correct way of how it was intended to work? or is this an issue and can be added to the backlog?
If this is not, feel free to close this issue.
Thanks!
Angular v9.1.12
ngx-toastr version: 12.1.0
The text was updated successfully, but these errors were encountered:
Hi,
I saw issue #818 and is marked as fixed in v12.1.0 (162b64f)
But this seems to have only moved the option for
newestOnTop
to the IndividualConfig options.The way that this works is if you edit the toastrService.toastrConfig.newestOnTop value.
In the demo application, the way it works is that you set the options from toastrConfig (reference object)
From my example, (since I did not want to change it in the forRoot({...}))
My question is, is this the correct way of how it was intended to work? or is this an issue and can be added to the backlog?
If this is not, feel free to close this issue.
Thanks!
Angular v9.1.12
ngx-toastr version: 12.1.0
The text was updated successfully, but these errors were encountered: