-
-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(outputs): allow to specify context for output handlers via Tokens
Add `IoEventContextToken` and `IoEventContextProviderToken` that will be used as a context when output handlers are invoked. Now `IoService` is part of the public API and you may use it to bind inputs/outputs imperatively anywhere from your code. To provide it use `IoServiceProvider` to remain BC compatible in the future. Also most of the codebase was refactored to replace `any` with more typesafe `unknown` and one bug in dynamic directive ref was fixed when host component was typed as a class instead of an instance. DEPRECATIONS: - `EventArgumentToken`: please use `IoEventArgumentToken`
- Loading branch information
Showing
15 changed files
with
390 additions
and
186 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
2 changes: 1 addition & 1 deletion
2
projects/ng-dynamic-component/src/lib/component-injector/token.ts
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
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
Oops, something went wrong.