基本概念 用于改变DOM元素的外观或行为的指令 组件是一种特殊的指令 import { Component} from '@angular/core'; @Component({ selector: 'app-root', template: