Pass parameters to constructor #1517
Answered
by
PodaruDragos
Peterculazh
asked this question in
Q&A
-
Hello, I would to figure out how I can pass parameters to constructor during resolving dependency?
|
Beta Was this translation helpful? Give feedback.
Answered by
PodaruDragos
Jul 25, 2023
Replies: 1 comment
-
Hello, this is really not recommended practice, however you can use 2 approaches.
Hope this helps. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Peterculazh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, this is really not recommended practice, however you can use 2 approaches.
injectable
service that you want to use insave
where you can get an validate data.factory
to get what you want from thecontainer
linkHope this helps.