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: Mdb angular Button Style not working

fanny111 free asked 4 years ago


When load the page this is what i get(I Dont have any errors on page)

here is the html:

 <a class="btn btn-primary btn-sm my-0" role="button">
      <span class="d-none d-lg-inline-block mr-1">How It Works</span>
    </a>

    <a class="btn btn-primary btn-sm my-0" role="button">
      <span class="d-none d-lg-inline-block mr-1">Why It Works</span>
    </a>

Actual behavior :enter image description here

after continuing in to different pages in the website then suddenly the buttons get the right style. waiting to hear from you how to solve it. thanks.

Expected behavior :enter image description here


Arkadiusz Idzikowski staff answered 4 years ago


You need to use syntax with mdbBtn directive instead of bootstrap classes. Please take a look at our documentation:

https://mdbootstrap.com/docs/angular/components/buttons/


fanny111 free commented 4 years ago

Thank you so much problem Solved.



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: 10.1.1
  • Device: pc
  • Browser: google
  • OS: windows
  • Provided sample code: No
  • Provided link: No