So I found a really nice template that I want to use, but it's only HTML using bootstrap. I have found a few tutorials on how to convert a similar project, and it seems pretty straight forward (like <a href="https://frensoltech.wordpress.com/2018/11/06/how-to-convert-html-template-to-angular-6-template/" rel="nofollow noreferrer">here</a>)
I added the first component and the head shows like this (I commented out most but one link tags to work with one at the time):
<pre class="lang-html prettyprint-override">
I added the following to angular.json:
In styles.css I added:
<pre class="lang-css prettyprint-override">
I also installed
When I try to run
I get the following error:
When I run it without the link tags, it runs just fine, but all the styling is missing (as in I just get a blob of text).
I haven't modified the script tags but they don't seem to be complaining yet.
Just to be clear I added css, fonts, images, js, libs, vendor folders from the bootstrap template inside src/assets.
I'm not sure what am I missing? Thanks in advance!
I added the first component and the head shows like this (I commented out most but one link tags to work with one at the time):
<pre class="lang-html prettyprint-override">
Code:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Some Html Template</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" type="text/css" href="../../assets/css/animate.css">
<!-- <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/line-awesome.css">
<link rel="stylesheet" type="text/css" href="css/line-awesome-font-awesome.min.css">
<link href="vendor/fontawesome-free/css/all.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="css/jquery.mCustomScrollbar.min.css">
<link rel="stylesheet" type="text/css" href="lib/slick/slick.css">
<link rel="stylesheet" type="text/css" href="lib/slick/slick-theme.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/responsive.css"> -->
</head>
Code:
"styles": [
"src/styles.css",
"src/assets/css/animate.css"
],
"scripts": [
"node_modules/bootstrap/dist/css/bootstrap.min.css"
]
<pre class="lang-css prettyprint-override">
Code:
@import "../node_modules/bootstrap/dist/css/bootstrap.min.css";
Code:
npm i bootstrap ngx-bootstrap jquery tether
Code:
npm start
Code:
ERROR in HostResourceLoader: loader(/Users/felipe/Documents/mtalents/frontend/src/assets/css/animate.css) returned a Promise
I haven't modified the script tags but they don't seem to be complaining yet.
Just to be clear I added css, fonts, images, js, libs, vendor folders from the bootstrap template inside src/assets.
I'm not sure what am I missing? Thanks in advance!