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

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.
主站蜘蛛池模板: 神池县| 雅安市| 黄龙县| 吉林省| 蓝田县| 应城市| 讷河市| 专栏| 团风县| 沁源县| 石阡县| 崇礼县| 南阳市| 房山区| 金溪县| 越西县| 手机| 大厂| 宁城县| 茶陵县| 察雅县| 天台县| 南乐县| 芦溪县| 吉首市| 南开区| 深水埗区| 务川| 新竹县| 砚山县| 泸定县| 理塘县| 海晏县| 岳池县| 龙门县| 沂水县| 玉林市| 嘉禾县| 随州市| 昭平县| 阳春市|