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

待解决问题 30 angular 中如何在发生路由错误时给 RouteOutlet 塞一个 Component

问题场景是这样的,点击 tab 后会浏览器地址栏会切换到 tab 对应的 url <a nz-tab-link [routerLink]="tab.route" [state]="{ tab }">{
2
回答数

回答被采纳 30 angular 中订阅 router events 是否需要 unsubscribe

比如下面的订阅 NavigationStart 事件的代码,通过 RxHelper.autoUnsubscribe 进行了 unsubscribe,请问这个退订是否必要? this._router.e
1
回答数

回答被采纳 30 ng-zorro-antd 的 tab 组件切换 tab 滞后的问题

园子博客后台前端 tab 组件用的是 ng-zorro-antd 提供的 <nz-tabset>,采用的是 link with router 方式 <nz-tabset nzLinkRouter [n
2
回答数

回答被采纳 30 使用腾讯云 coscli cp 命令上传大文件到对象存储的问题

使用下面的命令上传大文件到腾讯云对象存储 COS,无任何响应与输出 sudo ./coscli cp file1.zip cos://files-xxx/ 从服务器的带宽监控看实际也没有在上传文件
2
回答数

回答被采纳 30 Angular 项目迁移到 Standalone Components 后遇到一个 Component 代码不执行的问题

这是园子博客后台升级到 Angular 19 并迁移到 Standalone Components 后遇到的问题 posts-sidebar.component.ts 组件中的 <cnb-sideba
1
回答数

待解决问题 30 在 Angular Standalone 模式下如何使用 ng-zorro-antd 的 fetchFromIconfont

之前在 NgModule 模式是这么实现的 @NgModule({ declarations: [], imports: [CommonModule, NzIconModule.forRoot([])
1
回答数

回答被采纳 30 k8s 部署 clickhouse 后客户端连接失败: "Authentication failed"

使用 Altinity Kubernetes Operator 在 k8s 集群上部署 ClickHouse,部署后在 clickhouse pod 中通过 clickhouse-client 可以正
1
回答数

回答被采纳 30 Altinity Kubernetes Operator 部署的 ClickHouse 如何调整 PVC 空间大小

开始设置的 PVC 空间偏小了,想调大一些,修改清单文件,部署时不让修改 PVC 的大小
1
回答数

回答被采纳 30 如何让 Altinity Kubernetes Operator 部署 ClickHouse 时不部署 LoadBalancer

Altinity Kubernetes Operator 部署 ClickHouse 时默认会部署 LoadBalancer Service,实际用不到 LoadBalancer,如何禁止这个部署?
1
回答数

回答被采纳 30 Altinity Kubernetes Operator 如何部署 ClickHouse 的 NodePort Service

在 k8s 集群上通过 Altinity Kubernetes Operator 部署了 clickhouse,但只部署了 ClusterIP service,请问如何部署 NodePort serv
2
回答数

待解决问题 30 angular 19 中使用 ng-zorro-antd 标签页组件 nz-tabset 的问题

园子的博客后台 tab 组件用的是 ng-zorro-antd 的 nz-tabset,升级到 angular 19 + ng-zorro-antd 19 之后运行时浏览器控制台出现下面的警告 War
3
回答数

待解决问题 30 css:移动端适配时如何保持图片原始比例

图片指定了固定的宽度与高度,比如这篇博文 https://www.cnblogs.com/cmt/p/18568184 <img style="width: 800px; height: 340px"
1
回答数

回答被采纳 30 angular 项目报错 "error-handler.ts:20 TypeError: stackTrace.fromError is not a function"

这是园子博客后台升级到 angular 19 后解决升级问题中遇到的,浏览器控制台报错信息截图如下 对应的 typescript 代码 if (!environment.production) { i
1
回答数

回答被采纳 30 Angular: 迁移到 Standalone Component 后 ViewChild 无法正常工作

项目从 angular 15 升级到 angular 19 之后,将 component 迁移到 standalone component,ng build 已经没有任何错误,但运行时通过 ViewC
1
回答数

回答被采纳 30 angular 依赖注入问题:如何避免在很多 component 中注册同一个 class

下面的 class 在很多 component 中用到,在每个 standalone component 的 providers 中添加很麻烦,但又不能使用 providedIn: "root" 注册
1
回答数

回答被采纳 30 升级至 angular 19 后报错:"NG05105: Unexpected synthetic property @tabSwitchMotion found"

升级至 angular 19 并且迁移至 standalone components 后运行时报错 main.ts:6 RuntimeError: NG05105: Unexpected synthe
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
Top