From 9419e3c6c9db714f1500f481caf962d066e7ff5a Mon Sep 17 00:00:00 2001 From: cipchk Date: Fri, 5 Jul 2024 13:19:21 +0800 Subject: [PATCH 1/2] feat(abc:let): will be removed in v19 - Please use `@let` instead --- packages/abc/let/index.en-US.md | 1 + packages/abc/let/index.zh-CN.md | 1 + packages/abc/let/let.directive.ts | 3 +++ packages/abc/let/let.module.ts | 3 +++ 4 files changed, 8 insertions(+) diff --git a/packages/abc/let/index.en-US.md b/packages/abc/let/index.en-US.md index 5b9cc8a27..35e010a3b 100644 --- a/packages/abc/let/index.en-US.md +++ b/packages/abc/let/index.en-US.md @@ -5,6 +5,7 @@ title: let subtitle: Let cols: 1 module: import { LetModule } from '@delon/abc/let'; +deprecated: 19.0.0 --- Allows to reuse computed value in several places in template to avoid recalculations of getters or many `async` pipes. diff --git a/packages/abc/let/index.zh-CN.md b/packages/abc/let/index.zh-CN.md index 2aa7ed08d..95ede57f5 100644 --- a/packages/abc/let/index.zh-CN.md +++ b/packages/abc/let/index.zh-CN.md @@ -5,6 +5,7 @@ title: let subtitle: 定义 cols: 1 module: import { LetModule } from '@delon/abc/let'; +deprecated: 19.0.0 --- 允许在模板内复用计算值(包含异步),避免重复重新计算。 diff --git a/packages/abc/let/let.directive.ts b/packages/abc/let/let.directive.ts index 24e72a079..54f7337a0 100644 --- a/packages/abc/let/let.directive.ts +++ b/packages/abc/let/let.directive.ts @@ -14,6 +14,9 @@ export class LetContext { } } +/** + * @deprecated Will be removed in v19, Please use `@let` instead. + */ @Directive({ selector: '[let]', standalone: true }) export class LetDirective { @Input({ required: true }) let!: T; diff --git a/packages/abc/let/let.module.ts b/packages/abc/let/let.module.ts index b9199e5f0..8c841b19d 100644 --- a/packages/abc/let/let.module.ts +++ b/packages/abc/let/let.module.ts @@ -4,6 +4,9 @@ import { LetDirective } from './let.directive'; const DIRECTIVES = [LetDirective]; +/** + * @deprecated Will be removed in v19, Please use `@let` instead. + */ @NgModule({ imports: DIRECTIVES, exports: DIRECTIVES From 654738cec0afdeed20d7807ee151f7120ae0993a Mon Sep 17 00:00:00 2001 From: cipchk Date: Fri, 5 Jul 2024 13:35:37 +0800 Subject: [PATCH 2/2] docs: update --- packages/abc/let/index.en-US.md | 2 ++ packages/abc/let/index.zh-CN.md | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packages/abc/let/index.en-US.md b/packages/abc/let/index.en-US.md index 35e010a3b..57c3b42b4 100644 --- a/packages/abc/let/index.en-US.md +++ b/packages/abc/let/index.en-US.md @@ -8,6 +8,8 @@ module: import { LetModule } from '@delon/abc/let'; deprecated: 19.0.0 --- +# Will be removed in v19, Please use `@let` instead. + Allows to reuse computed value in several places in template to avoid recalculations of getters or many `async` pipes. ```html diff --git a/packages/abc/let/index.zh-CN.md b/packages/abc/let/index.zh-CN.md index 95ede57f5..e8be7def7 100644 --- a/packages/abc/let/index.zh-CN.md +++ b/packages/abc/let/index.zh-CN.md @@ -8,6 +8,8 @@ module: import { LetModule } from '@delon/abc/let'; deprecated: 19.0.0 --- +# Will be removed in v19, Please use `@let` instead. + 允许在模板内复用计算值(包含异步),避免重复重新计算。 ```html