本项目是阅读 today-ng 项目,并跟随相关教程而动手实践的一个笔记记录性质项目。
更多笔记请全局搜索“ImoNote”~
- 在
angular.json
文件的test
和build
各自的styles
数组中添加ng-zorro-antd.min.css
文件的路径(在node_modules
中)。从而避免直接从index.html
中手动引入,并随之而来的打包问题(需要手动将所有依赖的静态文件添加到src/assets
目录下,并根据情况设置--base-href
和--deploy-url
)。 - 之前没怎么使用过的 layout, anticon 等
This project was generated with Angular CLI version 6.0.7.
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via Protractor.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.