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.