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 had the same problem, however i could solve. You should import
providers: [
provideAnimations(),
provideToastr(),
]
In app.config.ts,
in the app.component.ts you don't import nothing
Now in your component where you call the toast, you should continue work as the same
Even with @rickardaniel 's tip I still get "Type 'EnvironmentProviders' is not assignable to type 'Provider'." error. Anyone has any tips on how to fix this? Thank you.
if we install ngx-toaster and import in angular 17 then import in standalone component but not working
@component({
selector: 'app-notification',
standalone: true,
imports: [PageTitleComponent, ToastrModule.forRoot()],
templateUrl: './notification.component.html',
styles: ``
})
The text was updated successfully, but these errors were encountered: