Skip to content

Commit f28ea71

Browse files
feat(component): remove LetModule (#4087)
Closes #4077 BREAKING CHANGES: The LetModule is removed in favor of the standalone LetDirective. BEFORE: import { LetModule } from '@ngrx/component'; @NgModule({ imports: [ // ... other imports LetModule, ], }) export class MyFeatureModule {} AFTER: import { LetDirective } from '@ngrx/component'; @NgModule({ imports: [ // ... other imports LetDirective, ], }) export class MyFeatureModule {}
1 parent 3724711 commit f28ea71

File tree

6 files changed

+1
-40
lines changed

6 files changed

+1
-40
lines changed

modules/component/spec/let/let.module.spec.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

modules/component/src/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
export { RenderScheduler } from './core/render-scheduler';
22
export { LetDirective } from './let/let.directive';
3-
export { LetModule } from './let/let.module';
43
export { PushPipe } from './push/push.pipe';

modules/component/src/let/let.directive.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export interface LetViewContext<PO> {
3434
}
3535

3636
/**
37-
* @ngModule LetModule
3837
*
3938
* @description
4039
*

modules/component/src/let/let.module.ts

Lines changed: 0 additions & 11 deletions
This file was deleted.

projects/ngrx.io/content/guide/component/let.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,6 @@ import { LetDirective } from '@ngrx/component';
2323
export class MyStandaloneComponent {}
2424
```
2525

26-
<div class="alert is-critical">
27-
28-
The `*ngrxLet` directive can be also used by importing the `LetModule`.
29-
However, the `LetModule` is deprecated in favor of the standalone `LetDirective`.
30-
See the [migration guide](guide/migration/v16#letmodule) for more information.
31-
32-
</div>
33-
3426
## Comparison with `*ngIf` and `async`
3527

3628
The current way of binding an observable to the view looks like this:

projects/ngrx.io/content/guide/migration/v15.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ The `MinimalActivatedRouteSnapshot` interface contains the required `title` prop
114114

115115
#### Removal of ReactiveComponentModule
116116

117-
The `ReactiveComponentModule` is removed in favor of [`LetModule`](/api/component/LetModule) and `PushModule`.
117+
The `ReactiveComponentModule` is removed in favor of `LetModule` and `PushModule`.
118118

119119
BEFORE:
120120

0 commit comments

Comments
 (0)