Module 2.2: Footer Component
Generating the Footer component
Start by running
ng generate component footer
Notice the FooterComponent was added to the boss-file:
app.module.ts
Let’s include the footer content at the bottom of our
app.component.html
file. Include the following at the bottom:<app-footer></app-footer>
Add HTML and CSS to the Footer
Add the following code for footer.component.html
.
Then copy and paste the following CSS rules into footer.component.css.
Serve up your website and you should have a footer after your content! (Again, no errors in the console)
Last updated