I'm currently in the process of integrating an HTML template into my Angular 7 project, and unfortunately, it does not seem to be functioning as expected.
To start off, I have placed the template files under assets/template/.. and included the necessary imports in angular.json like so:
- "styles": ["src/assets/template/css/style-customizer.css",...],
- "scripts": ["src/assets/template/js/vendor/modernizr-2.8.3.min.js",...]
Next, I made some adjustments to the existing HTML code:
- removed doctype and html tags
- eliminated all header elements
- excluded any CSS and JS imports
- updated image sources accordingly
(e.g. src="/assets/template/img/slider/1.jpg" alt="main slider" title="#htmlcaption1")
The modified HTML code was successfully added to index.html within the app-root tag, with everything working smoothly at this stage.
However, upon transferring the content to app.component.html :
- certain images fail to display properly
- some CSS styles are not being applied correctly
- and specific animations are not functioning as intended
Intriguingly, no errors are being logged in the console despite these issues.