官术网_书友最值得收藏!

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: 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: "Let's change the view encapsulation of our main component to use the ViewEncapsulation.None mode."

A block of code is set as follows:

import {Component, ViewEncapsulation} from '@angular/core';

@Component({
selector: 'mac-root',
templateUrl: './app.component.html',
encapsulation: ViewEncapsulation.None
})
export class AppComponent {
title = 'mac';
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

...
import {TaskService} from './tasks/task.service';
...
@NgModule({
...
providers: [TaskService],
...
})
export class AppModule {
}

Sometimes, on large code excerpts that require you to implement code changes in existing code files, we use the following format:

  • New or replaced code parts are marked in bold
  • Already existing and irrelevant code parts are hidden using an ellipsis character

Any command-line input or output is written as follows:

ng new mastering-angular-components --prefix=mac

Bold: Indicates a new term, an important word, or words that you see onscreen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "You should be able to see the generated application app with a welcome message saying Welcome to mac!"

Warnings or important notes appear like this.
Tips and tricks appear like this.
主站蜘蛛池模板: 张家川| 昌都县| 海南省| 富顺县| 博客| 东明县| 河曲县| 商城县| 禄劝| 林甸县| 沈丘县| 沅陵县| 沾益县| 塔城市| 兰西县| 从化市| 仪陇县| 兰州市| 甘德县| 菏泽市| 宜章县| 固始县| 虞城县| 马龙县| 从江县| 廊坊市| 芮城县| 微山县| 苏尼特左旗| 宣城市| 射阳县| 墨江| 普定县| 南雄市| 临夏市| 蕉岭县| 凉城县| 高陵县| 枝江市| 东台市| 洛隆县|