1. Creating the Base Application
Activity 1: Using a BootSwatch Theme
Solution:
- Navigate to BootSwatch Themes (https://www.bootstrapcdn.com/bootswatch/) on BootstrapCDN.
- Select one of the themes and copy the link to the CSS:
Figure 1.31: Selecting the Darkly theme
- Update the link to Bootstrap CSS in
src/styles.css
:@import url('https://stackpath.bootstrapcdn.com/bootswatch/4.1.3/darkly/bootstrap.min.css');
- Refresh the app in the browser and verify that the theme has been updated:
Figure 1.32: Thumbs-up icon in the Darkly theme
Activity 2: Using Different Font Awesome Icons
Solution:
- Open the
src/app/app.component.html
file. - Navigate to the Font Awesome icon list at https://fontawesome.com/v4.7.0/icons/.
- Replace the value of
fa-thumbs-up
with another icon. Note that you always need thefa
class:<i class="fa fa-trash"></i>
- Refresh the app in the browser and verify that the browser...