Get help with using Metro 4 components
Post Reply
Posts: 1
Joined: Thu Aug 23, 2018 4:49 am
Status: Offline


Post by emov19 » Thu Aug 23, 2018 4:58 am


I am integrating metroui and angular, however I am having problems.

it happens that the component select when adding: data-role = "select", does not allow me to use the directive (change) of angular, if I remove data-role = "select" it allows me to use the directive (change) of angular, but the select css style is lost

How can i solve this?

Thank you!

Posts: 45
Joined: Wed Apr 11, 2018 7:32 pm
Status: Offline

Post by drodriguez » Thu Aug 23, 2018 5:29 pm

I don't know with angular but i have the same problem with vuejs....
In vuejs: jQuery Change event ( $(select).val(val); $(select).trigger("change"); ) not fire the input change to work with vuejs.

Please open , go to line 14195 and 14196 to see the events.
The "bug" is like ... ith-jquery

In VueJs i have to make a wrapper (component or directive) for metro data-role="select".... I did that but select2.js plugin to work with metro.
Some day (when i have free time) I will do that with metro select and vuejs without select2.

good luck and let me know if you something else.

Post Reply