-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(component): add error as value to LetDirective's context (#3380)
Closes #3343 BREAKING CHANGES: The `$error` property from `LetDirective`'s view context is a thrown error or `undefined` instead of `true`/`false`. BEFORE: ```ts <p *ngrxLet="obs$; $error as e">{{ e }}</p> ``` - `e` will be `true` when `obs$` emits error event. - `e` will be `false` when `obs$` emits next/complete event. AFTER: ```ts <p *ngrxLet="obs$; $error as e">{{ e }}</p> ``` - `e` will be thrown error when `obs$` emits error event. - `e` will be `undefined` when `obs$` emits next/complete event.
- Loading branch information
1 parent
0ffed02
commit 6452e24
Showing
3 changed files
with
24 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters