blog-angular icon indicating copy to clipboard operation
blog-angular copied to clipboard

Angular 笔记

Results 104 blog-angular issues
Sort by recently updated
recently updated
newest added

Bumps [moment](https://github.com/moment/moment) from 2.19.4 to 2.29.4. Changelog Sourced from moment's changelog. 2.29.4 Release Jul 6, 2022 #6015 [bugfix] Fix ReDoS in preprocessRFC2822 regex 2.29.3 Full changelog Release Apr 17, 2022...

dependencies

Bumps [@angular/core](https://github.com/angular/angular/tree/HEAD/packages/core) from 4.4.6 to 11.0.5. Changelog Sourced from @​angular/core's changelog. 11.0.5 (2020-12-16) Bug Fixes compiler: handle strings inside bindings that contain binding characters (#39826) (f5aab2b), closes #39601 core: fix...

dependencies

``` ERROR in ./node_modules/css-loader?{"sourceMap":false,"importLoaders":1}!./node_modules/postcss-loader?{"ident":"postcss"}!./node_modules/@angular/cli/node_modules/sass-loader/lib/loader.js?{ "sourceMap":false,"precision":8,"includePaths":[]}!./src/styles.scss Module build failed: Error: ENOENT: no such file or directory, scandir 'D:\个人\gitee-poetry\node_modules\@angular\cli\node_modules\node-sass\vendor' at Object.fs.readdirSync (fs.js:913:18) at Object.getInstalledBinaries (D:\个人\gitee-poetry\node_modules\@angular\cli\node_modules\node-sass\lib\extensions.js:128:13) at foundBinariesList (D:\个人\gitee-poetry\node_modules\@angular\cli\node_modules\node-sass\lib\errors.js:20:15) at foundBinaries (D:\个人\gitee-poetry\node_modules\@angular\cli\node_modules\node-sass\lib\errors.js:15:5) at...

#### 1. 如何让别人可以访问自己本地启动的服务 使用ipconfig查看自己的ipV4地址,如`192.168.16.11`,之后在加上`--host 192.168.16.11` ,关闭本地防火墙别人即可访问你的项目。 也可以直接使用`--host 0.0.0.0`启动。 访问地址 `192.168.16.11:4200` 启动方式 `ng server --host 192.168.16.11`

实用技巧

Bumps [karma](https://github.com/karma-runner/karma) from 1.7.1 to 6.3.16. Release notes Sourced from karma's releases. v6.3.16 6.3.16 (2022-02-10) Bug Fixes security: mitigate the "Open Redirect Vulnerability" (ff7edbb) v6.3.15 6.3.15 (2022-02-05) Bug Fixes helper:...

dependencies

Bumps [chownr](https://github.com/isaacs/chownr) from 1.0.1 to 1.1.4. Commits 814f642 1.1.4 a0d7ae0 push to github before npm 1a3667a ignore stuff 147eac4 Full tests, handle errors properly in many cases 578fb9f update tap,...

dependencies

Bumps [node-sass](https://github.com/sass/node-sass) from 3.13.1 to 7.0.0. Release notes Sourced from node-sass's releases. v7.0.0 Breaking changes Drop support for Node 15 (@​nschonni) Set rejectUnauthorized to true by default (@​scott-ut, #3149) Features...

dependencies

Bumps [tinymce](https://github.com/tinymce/tinymce/tree/HEAD/modules/tinymce) from 4.7.4 to 5.10.0. Changelog Sourced from tinymce's changelog. 5.10.0 - 2021-10-11 Added Added a new URI.isDomSafe(uri) API to check if a URI is considered safe to be...

dependencies

#### Angular必知八大概念 - 模块 模块有两层含义: 1) 框架代码以模块形式组织(物理模块) 2) 功能单元以模块形式组织(逻辑模块) 物理模块是TS/ES6提供的文件模块特征 逻辑模块是对应应用内零散的组件、指令、服务按功能进行分类包装,其关系示意图如下: ![image](http://note.youdao.com/yws/public/resource/6a50187b5abb2591ddbb96b5abd2f75d/xmlnote/C5F4B0311F67466291C9F6C82BF97A8F/4948) *首先,Angular 要能成功运行,至少需要定义一个模块,因为需要有一个模块作为应用启动的入口,这样的模块就称为根模块。 然后,我们的应用会不断的添加新的功能。这些新增的功能可以封装到一个新的模块里。这些新增加的模块在 angular 里称为特性模块。有了特性模块之后,根模块原来承载在功能逻辑也可以抽离出来,放到某个特性模块里,使根模块保持简洁。 接下来,我们添加的特性模块越来越多,他们之间可以抽出一些相似功能的组件或指令,这些公共的部分也可以封装成一个独立的模块,这样的模块在逻辑意义上不能称为特性模块,Angular 把他称为为共享模块。 最后,还有核心模块,我们知道,一个应用里总有一些全局的组件或服务等,他们只需要在应用启动时候初始化一次即可,例如,维护登录信息的服务,或者是,公共的头部和尾部组件等。虽然我们可以把他们放到根模块里,但更好的设计是把这些逻辑也抽离出来,放到一个独立的模块,这个模块即为核心模块。核心模块要求只导入到根模块里,而尽量不要导入到特性模块或者共享模块里,这是为了在协同工作时候避免出现一些不可预料的结果。* Angular 已经封装了不少常用的模块, 如: > ApplicationModule:封装一些启动相关的工具; CommonModule:封装一些常用的内置指令和内置管道等; BrowserModule:封装在浏览器平台运行时的一些工具库,同时将 CommonModule 和 ApplicationModule...

## e2e ### 1. 报错`session not created: This version of ChromeDriver only supports Chrome version 74 error.... ` ``` session not created: This version of ChromeDriver only supports Chrome version...

E2E