-
-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: allow to define config in scope of the dialog component class #106
base: master
Are you sure you want to change the base?
feat: allow to define config in scope of the dialog component class #106
Conversation
Run & review this pull request in StackBlitz Codeflow. |
9e65d7e
to
ace7359
Compare
@milo526 @va-stefanek can we think on another way to do it without using inheritance and still keep it typed? |
I've looked into this and I cannot find a cleaner solution for now. |
@NetanelBasal @milo526 we can think of about dedicated function to create dialog definition e.g e.g
and
|
Interesting |
@NetanelBasal @milo526 let me know if this is what you are interested in. |
I'd love to hear from @milo526, who'll probably be the first consumer. |
To be fair; this is not what I envisioned when creating the issue. The configuration is now still outside of the class and a developer could still accidentally or intentionally open the class itself instead of this new definition. This is not much different from adding a static method on the class and providing that as the argument to the |
@NetanelBasal any input? |
@milo526 what do u think about this approach? |
My first question would be, how does this interact with DI? Not able to test this myself right now, but being able to use DI in modals is important to use; in our experience requiring constructor parameters often messes with DI. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Issue Number: #89
What is the new behavior?
Added possibility to define config in scope of component class
Does this PR introduce a breaking change?