"I want to add some areas from the HTML template to an Angular project, for example, form components. After adding the HTML part, what remains is to import specific CSS and JS files for the component into Angular. When I do the import from angular.js, I get a parsing error. I also receive an error when I add it specifically to the page. How do I import CSS and JS files specific to Metronic HTML sections into Angular?"
Hi,
Could you please provide a screenshot of the error you're encountering?
For styles, you can add them to the "styles" array in the angular.json file. Similarly, for scripts, use the "scripts" array. This ensures proper order and inclusion of dependencies.
Example in angular.json:
"styles": [
"src/styles.css",
"path/to/metronic-css-file.css"
],
"scripts": [
"path/to/metronic-js-file.js"
]