- Mastering Angular Components
- Gion Kunz
- 244字
- 2021-07-23 17:23:35
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!"
- Mastering Node.js(Second Edition)
- 數(shù)據(jù)通信網(wǎng)絡(luò)實(shí)踐:基礎(chǔ)知識(shí)與交換機(jī)技術(shù)
- 物聯(lián)網(wǎng)智慧安監(jiān)技術(shù)
- 物聯(lián)網(wǎng)網(wǎng)絡(luò)安全及應(yīng)用
- Windows Server 2003 Active Directory Design and Implementation: Creating, Migrating, and Merging Networks
- 局域網(wǎng)組建、管理與維護(hù)項(xiàng)目教程(Windows Server 2003)
- 互聯(lián)網(wǎng)基礎(chǔ)資源技術(shù)與應(yīng)用發(fā)展態(tài)勢(shì)(2021—2023)
- 企業(yè)網(wǎng)絡(luò)安全管理
- 網(wǎng)絡(luò)設(shè)計(jì)與應(yīng)用(第2版)
- 網(wǎng)絡(luò)安全之道
- 現(xiàn)場(chǎng)綜合化網(wǎng)絡(luò)運(yùn)營(yíng)與維護(hù):運(yùn)營(yíng)商數(shù)字化轉(zhuǎn)型技術(shù)與實(shí)踐
- 物聯(lián)網(wǎng)概論
- 目標(biāo)跟蹤中的群智能優(yōu)化方法
- 局域網(wǎng)組建與維護(hù)項(xiàng)目教程
- 移動(dòng)應(yīng)用開發(fā)技術(shù)