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: Material Select – jQuery (Not loading)

TeoDaTank pro asked 7 years ago


Hello all,This is -very- likely to be an issue with my noviceness with Ang5, but I'm trying to use one of the mdb-select dropdowns, but it's never rendering.I'm used to Materialize so I did initialize it (I'm thinking) via

<script> // Material Select Initialization 
$(document).ready(function() 
{ $('.mdb-select').material_select(); }
);</script>

The reason I say 'I'm thinking' is I don't quite know how handle this within Angular. I thought the Pro package I bought was the jQuery free version, but I can see why some things would of course still need jQuery.Has anyone come across these issues, or can give me guidance on how I am supposed to initialize these functions within Angular? Do you put it in the component instead of the view, and if so - Is it just in ngOnInit?Welcome any input.Thanks.


Dawid Adach pro answered 7 years ago


Dear TeoDaTank, you have used jQuery version of Material Select, please use Angular version: https://mdbootstrap.com/angular/advanced/material-select/   MDB is available in jQuery, Angular, Vue and React therefore please always make sure that you are browsing correct docs (note technology picker on the right side of the page).

TeoDaTank pro commented 7 years ago

Thanks for that, Dawis. I never even noticed that tech picker on the right. Appreciate it!


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: Pro
  • Premium support: No
  • Technology: MDB Angular
  • MDB Version: -
  • Device: -
  • Browser: -
  • OS: -
  • Provided sample code: Yes
  • Provided link: No
Tags