首页 新闻 会员 周边
1
回答数

回答被采纳 30 angular 19 中 HttpClient 的依赖注入问题

园子博客后台升级至 angular 19 并改用 standalone bootstrapping api import { bootstrapApplication } from '@angular
1
回答数

回答被采纳 30 vscode 中如何方便地在 angular compoment 的不同文件之间切换

也就是在同一个组件的 .ts 文件、.html 模版文件、.scss(或者 .less)样式文件之间切换
1
回答数

待解决问题 30 vscode 中如何对 tab 按字母进行排序

在 angular 开发中特别需要,这样同一个 component 的不同代码文件可以紧挨在一起
1
回答数

回答被采纳 30 angular: standalone component 使用 [formControl] 的问题

下面的 component template 代码 <input [formControl]="control"> 已经添加了 FormsModule 的引用 imports: [FormsModul
1
回答数

回答被采纳 30 angular standalone component 中使用 ngModel 的问题

将一个 component 转换为 standalone component <div> <cnb-spinner [show]="isLoading"> <cnb-editors-selector
1
回答数

回答被采纳 30 在 Angular 19 中如何以懒加载的方式动态创建 Component

懒加载是是指 lazy 或者 defer 方式,动态创建是在运行时创建 Component,请问在 angular 19 中如何实现?
1
回答数

待解决问题 30 vscode 中编辑 angular component 的 html 文件时如何自动添加 import

如果下面的 html 代码 想根据 *ngIf 与 [ngClass],自动在对应的 .ts 文件添加 import import { NgClass, NgIf } from '@angular/c
1
回答数

回答被采纳 30 Angular 项目使用 Standalone Components 时如何全局 import CommonModule

园子博客后台升级到 angular 19 后,将所有 component 都迁移到 standalone component,然后发现连最简单的 *ngIf 与 [ngClass] 无法使用 buil
1
回答数

回答被采纳 30 eslint 对 .prettierrc.js 报错的问题

在 vsocde 中 eslint 对 .prettierrc.js 报错,请问如何解决这个问题? File is a CommonJS module; it may be converted to
1
回答数

回答被采纳 30 qdrant pod 启动时报错:"Failed to connect to http://qdrant-1.qdrant-headless:6335/"

在 kubernets 集群上使用 helm 部署 qdrant,只部署了一个 replica,pod 在启动时日志中有下面的错误与警告,但 qdrant 可以正常使用 2024-12-27T23:0
1
回答数

回答被采纳 30 ng-zorro-antd 升级后 nz-dropdown-menu 样式出现问题

从 angular 15 升级到 angular 19,从 ng-zorro-antd 15 升级到 ng-zorro-antd 19 之后,nz-dropdown-menu 出现问题 之前正常时是这
1
回答数

回答被采纳 30 dotnet restore 时出现 MSB4018 错误

之前好好的,昨天磁盘空间被用完,清理出磁盘空间后,执行 dotnet restore 命令时会出现很多 MSB4018 错误 #23 5.027 /usr/share/dotnet/sdk/9.0.1
1
回答数

回答被采纳 30 angular 19 中遇到 NzDropDownDirective 的依赖注入问题

下面的 Directive 实现,运行时会报错 NullInjectorError: No provider for t! @Directive({ providers: [NzDropDownDir
1
回答数

回答被采纳 30 angular 测试中的依赖注入问题:"No provider for InjectionToken NZ_MODAL_DATA"

Component 代码如下 export class BlogCategoryEditComponent implements OnInit { constructor( @Inject(NZ_MO
1
回答数

待解决问题 30 angular 19 中如何通过 ng test 命令用 jest 运行测试

目前是通过 npm run test 命令运行的,对应的命令脚本如下: { "scripts": { "test": "node --experimental-vm-modules --no-warn
1
回答数

回答被采纳 30 更新 jest.config.ts 后遇到 import 路径解析问题

angular 项目升级 jest 与 jest-preset-angular 之后,更新了 jest.config.ts import ngPreset from 'jest-preset-angu
1
回答数

待解决问题 30 angular 项目 jest 测试报错:"not provide an export named '$'"

angular 19, jest 29.7,错误信息如下: FAIL e2e/posts/post-edit.spec.ts ● Test suite failed to run SyntaxErro
1
回答数

回答被采纳 30 angular 19 项目运行 test 报错:"Jest encountered an unexpected token"

angular 19 项目通过 jest 运行测试,报错 jest.config.ts 配置代码 import presets from 'jest-preset-angular/presets';
1
回答数

回答被采纳 升级到 angular 19 后运行测试出现警告 "This preset is DEPRECATED"

从升级到 angular 15 升级到 angular 19 后,运行 test 出现下面的 warning > node --experimental-vm-modules --no-warning
1
回答数

回答被采纳 30 升级到 angular 19 后运行测试报错:"Unexpected identifier 'assert'"

园子的博客后台从 angular 15 升级到 angular 19 后运行测试报错,错误信息如下 $ npm run test > node --experimental-vm-modules --
2
回答数

回答被采纳 30 升级到 Angular 19 后 Firefox 中遇到奇怪的表格边框样式问题

园子的博客后台从 angular 15 升级到 angular 19 后,Firefox 中遇到一个奇怪的表格边框样式问题 Chrome 中正常,表格每行下方都有边框 对应的样式如下 Firefox
1
回答数

回答被采纳 30 vscode 自动格式化 html 代码的问题

下面的 angular component html 代码 在 vscode 已保存就被格式化成下面这样 请问如何解决这个问题?
1
回答数

回答被采纳 30 如何让 vscode 在保存时自动格式化 typescript 代码并修复 lint 错误

请问如何让 vscode 按照当前 angular 项目中的 .eslintrc.js 配置在保存时自动格式化 typescript 代码并修复 lint 错误
1
回答数

回答被采纳 30 如何将已有代码快速的迁移至 angular built-in control flow 写法

不用 control flow 的写法 <div *ngIf="loggedIn; else anonymousUser"> The user is logged in </div> <ng-temp
1
回答数

回答被采纳 升级到 angular 19 后 monaco-editor 报错:"Failed to execute 'fetch' on 'WorkerGlobalScope'"

项目升级到 angular 19 后访问时浏览器控制台出现 monaco-editor 的报错 TypeError: Failed to execute 'fetch' on 'WorkerGloba