From 5dd82df11528c1144073df6d4fc84d760e34486a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=A1=E8=89=B2?= Date: Fri, 19 Jul 2024 19:03:34 +0800 Subject: [PATCH] feat(abc:let): will be removed in v19 (#1814) --- packages/abc/let/index.en-US.md | 3 +++ packages/abc/let/index.zh-CN.md | 3 +++ packages/abc/let/let.directive.ts | 3 +++ packages/abc/let/let.module.ts | 3 +++ 4 files changed, 12 insertions(+) diff --git a/packages/abc/let/index.en-US.md b/packages/abc/let/index.en-US.md index 5b9cc8a27..57c3b42b4 100644 --- a/packages/abc/let/index.en-US.md +++ b/packages/abc/let/index.en-US.md @@ -5,8 +5,11 @@ title: let subtitle: Let cols: 1 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 2aa7ed08d..e8be7def7 100644 --- a/packages/abc/let/index.zh-CN.md +++ b/packages/abc/let/index.zh-CN.md @@ -5,8 +5,11 @@ title: let subtitle: 定义 cols: 1 module: import { LetModule } from '@delon/abc/let'; +deprecated: 19.0.0 --- +# Will be removed in v19, Please use `@let` instead. + 允许在模板内复用计算值(包含异步),避免重复重新计算。 ```html 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