Hi;
I use metronic 8 html version demo35 implemention to my angular 15 project and js imported after error "KTUtil is not defined"
can you help me for this problem
Thanks Keen Team.
<img src="https://i.imgur.com/DvVEiGN.png" />
<img src="https://i.imgur.com/RHi2mLw.png" />
<img src="https://i.imgur.com/UDglL3I.jpg" />
Did you find a solution for this?
I'm having a very similar issue with the FormValidation library.
In my case KTUtil is defined, but I get this error:
Uncaught TypeError: KTUtil.onDOMContentLoaded is not a function
I made sure that the js/scripts.bundle.js
file is imported in the project right above the file that's causing the error.
Another approach to define the KTUtil constant for an external library in an Angular project. Here's how you can do it:
Open the typings.d.ts file located in the src directory of your Angular project.
Add the following declaration to the file:
declare const KTUtil: any;
Hi,
If you are using the compiled files from the Metronic 8 HTML version demo35, the KTUtil library should already be included in the bundled filejs/scripts.bundle.js
. Make sure you have imported this JavaScript file into your project.
Thanks
"util.js" not included "demo35/dist/assets/..." in Metronic8 HTML Version "demo35"
In which folder will I copy the "util.js" file?
<img src="https://i.imgur.com/tKIq4T5.jpeg" />
Hi,
You need to make sure that the required JavaScript file, util.js
, is included and properly loaded in your project.
Confirm that the util.js
file is present in the correct location within your project's file structure. The original file is located in thesrc/js/components
directory.
Thanks
i have Keen 3 admin theme, how can i do keen 3 admin theme implemention to angular 15, docs or video ?