Skip to content

Commit

Permalink
feat(component): remove LetModule (#4087)
Browse files Browse the repository at this point in the history
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 {}
  • Loading branch information
timdeschryver authored Oct 24, 2023
1 parent 3724711 commit f28ea71
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 40 deletions.
18 changes: 0 additions & 18 deletions modules/component/spec/let/let.module.spec.ts

This file was deleted.

1 change: 0 additions & 1 deletion modules/component/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export { RenderScheduler } from './core/render-scheduler';
export { LetDirective } from './let/let.directive';
export { LetModule } from './let/let.module';
export { PushPipe } from './push/push.pipe';
1 change: 0 additions & 1 deletion modules/component/src/let/let.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ export interface LetViewContext<PO> {
}

/**
* @ngModule LetModule
*
* @description
*
Expand Down
11 changes: 0 additions & 11 deletions modules/component/src/let/let.module.ts

This file was deleted.

8 changes: 0 additions & 8 deletions projects/ngrx.io/content/guide/component/let.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,6 @@ import { LetDirective } from '@ngrx/component';
export class MyStandaloneComponent {}
```

<div class="alert is-critical">

The `*ngrxLet` directive can be also used by importing the `LetModule`.
However, the `LetModule` is deprecated in favor of the standalone `LetDirective`.
See the [migration guide](guide/migration/v16#letmodule) for more information.

</div>

## Comparison with `*ngIf` and `async`

The current way of binding an observable to the view looks like this:
Expand Down
2 changes: 1 addition & 1 deletion projects/ngrx.io/content/guide/migration/v15.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ The `MinimalActivatedRouteSnapshot` interface contains the required `title` prop

#### Removal of ReactiveComponentModule

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

BEFORE:

Expand Down

0 comments on commit f28ea71

Please sign in to comment.