angular相关
安装
npm install -g @angular/cli
新建项目
ng new my-app
https://angular.io/guide/entry-components
The entryComponents array
Though these two mechanisms account for most entry components, if your app happens to bootstrap or dynamically load a component by type imperatively, you must add it to entryComponents explicitly.
传递变量到dialog
https://material.angular.io/components/dialog/overview
ngClass用法 https://angular.io/api/common/NgClass