Skip to content

Pass parameters to constructor #1517

Answered by PodaruDragos
Peterculazh asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, this is really not recommended practice, however you can use 2 approaches.

  1. create another injectable service that you want to use in save where you can get an validate data.
  2. create a factory to get what you want from the container link

Hope this helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Peterculazh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants