一直想写一个Angular2+的分享,但是没有一个好的切入点。前段时间我向分享Chat的白宦成老师请教markdown的问题,他向我推荐Typora编辑器,我觉着这就是我一直想要的Markdown编辑器,于是我就想到了这个主题。当然,我的水平一时是难于写出Typora那样的编辑器的,但人生已经如此艰难,大家就不要拆穿了,我主要是想通过一个实际应用分享一下Angular(文中提到的Angular指的都是Angular2+,实际版本是Angular5)的开发过程,主要内容包括:
Angular项目的默认语言是TypeScript,如果你不太熟悉请看我的另外一个Chat:TypeScript快速入门
本Chat的目录如下:
了解Chat详细内容请扫码加入:
This project was generated with Angular CLI version 1.7.0.
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.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。