[Vuejs]-Materialize js doesn't work on first load

0👍

It seems use an external jQuery library is an anti-pattern with Vue.js, because

Vue.js and jquery fight over how the DOM is handled.

See the last comment here

I think you have to install it via npm and then insert manually the css and js in the compile process because I had the same problem with materialize and ionic 3.

If you wan’t spend time finding a work-around way to import manually the css and js inside the compile process would be better to use a more Vue friendly solutions like this

I modified my answer to add another useful link. This library use the Materialize css and Vue.js to build UI appcomponents.org

Leave a comment