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

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.
主站蜘蛛池模板: 会昌县| 杭锦后旗| 麻栗坡县| 临沂市| 宁波市| 丽江市| 铜山县| 江北区| 三河市| 桐乡市| 崇州市| 永宁县| 襄汾县| 铁力市| 黑河市| 平山县| 莎车县| 南宁市| 松溪县| 旺苍县| 屏南县| 敖汉旗| 阿克陶县| 大荔县| 云梦县| 固阳县| 林周县| 叶城县| 疏附县| 崇仁县| 赞皇县| 梧州市| 内黄县| 河曲县| 张家界市| 尤溪县| 同仁县| 肇东市| 广安市| 即墨市| 延庆县|