Conventions used
There are a number of text conventions used throughout this book.
Code in text
: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "Now, we'll move the code from the the-amazing-list-component.html
file to the the-amazing-list-item.component.html
file for the item's markup."
A block of code is set as follows:
openMenu($event, itemTrigger) { if ($event) { $event.stopImmediatePropagation(); } this.popoverMenuTrigger = itemTrigger; this.menuShown = true; }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
.menu-popover { ... &::before {...} &--up { transform: translateY(-20px); &::before { top: unset !important; transform: rotate(180deg); bottom: -10px; } } &__list {...} }
Bold: Indicates a new term, an important word, or words that you see onscreen. For instance, words in menus or dialog boxes appear in bold. Here is an example: "You will notice that we can't see the entirety of the content of the input—this is somewhat annoying at the best of times because you can't really review it before pressing the Action button."
Tips or important notes
Appear like this.