Angular
Angular
install
|
|
修改主页
app.component.html src/style.css
添加组件
|
|
添加模块带路由
|
|
devui
install
|
|
angular开发环境
emacs下
|
|
缩进设置
|
|
websocket related
- https://indepth.dev/tutorials/angular/how-to-implement-websockets-in-angular-project
- https://rxjs.dev/api/webSocket/webSocket
- https://blog.angulartraining.com/how-to-use-websockets-with-rxjs-and-angular-b98e7fd8be82
- https://tutorialedge.net/typescript/angular/angular-websockets-tutorial/
- https://javascript-conference.com/blog/real-time-in-angular-a-journey-into-websocket-and-rxjs/
FAQ
ng new setTimeout is not defined
因为是cpnpm安装的angular cli导致
|
|
ng new too slow
因为部分还是走了外网,不是国内源
|
|
npm提示有proxy
|
|
Cannot find module '@ngx-translate/core'
NullInjectorError: No provider for HttpClient!
app.module需要引入HttpClient module
|
|
error TS2564: Property 'busy' has no initializer and is not definitely assigned in the constructor.
|
|
e implicitly has an 'any' type
|
|
建议显式声明类型
bundle initial exceeded maximum budget. Budget 1.00 MB
angular.json搜索budgets修改对应的大小即可
angular not going to children, but root
like /a/b.component.html add <router-outlet></router-outlet> to root a.component.html
参考文档
- angular tutorial 中文版 http://angular.cn/tutorial