Hi Guys,
Is there a way to re-initiate javascript functions in my component partials.
It seems these are loaded asynchronously and bindings to all the metronic scripts are lost, i.e. the click event on the menu.
Im using an angular component on the menu to load in navigation from an API.
Something like the data-kt-menu-trigger="click" on the menu doesnt work when using a component to load templates into the DOM.
I would be interested to see if this is possible.
The alternative is to recreate all the events within my components which seems like complete overkill.
Using AngularJS v1.8.
thanks in advance.
Hi,
I think it's possible. Try to check src/app/_metronic/layout/components/scripts-init/scripts-init.component.ts
file.
I think you can write helpers with pluginsInitialization
method, and call it where you need to reload plugins.
Regards,
Keenthemes support