Holiday Notice: Support will be provided on a limited scale from December 24th, 2024, to January 2nd, 2025. Happy holidays and a wonderful New Year!


Topic: Toast service is not displaying text and size of the toast is also small.

Pankaj charpe free asked 5 years ago


Hi Barosz, I am sharing my demo app which you modified earlier for my login modal with toast service. https://drive.google.com/open?id=19ZiMOR5fE2HTs7G_aiv5cs9uvng7GM7k

If you click on login with any parameter, it shows a toast but not displaying the text msg in it and also the size of the toast is also small. I tried with different options, but didn't help. Please help to resolve this issue.

Thanks Pankaj


Bartosz Termena staff answered 5 years ago


Dear @Pankaj charpe

Just import BrowserAnimationsModule, which introduces the animation capabilities into your Angular root application module.

import { BrowserAnimationsModule } from '@angular/platform-browser/animations'

app.module.ts

@NgModule({
  declarations: [AppComponent, HeaderComponent],
  imports: [
    BrowserModule,
    BrowserAnimationsModule, <-----------------
    MDBBootstrapModulesPro.forRoot(),
    ToastModule.forRoot(),
    AppRoutingModule,
    LoginModule
  ],
  providers: [MDBSpinningPreloader],
  bootstrap: [AppComponent]
})

Hope it helps!

Best Regards, Bartosz.


Pankaj charpe free commented 5 years ago

Thanks. It helped.



Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Resolved

Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: 8.3.1
  • Device: Laptop
  • Browser: chrome
  • OS: windows 10
  • Provided sample code: No
  • Provided link: Yes