npm install -g @angular/cli //安装angular Cli
ng new programName //新建项目
ng serve --open
ng serve -o
npm start //启动服务
ng generate component componentName
ng g c componentName //新建组建
ng generate service serviceName
ng g s serviceName //新建服务
ng generate class className //新建类
/*for循环显示html,v-for="let hero in heroes"*/
<li *ngFor="let hero of heroes"> {{ hero }} </li>
/*if判断显示html, v-if*/
`<p *ngIf="heroes.length > 3">There are many heroes!</p>`