is there any way when creating a scope to pass a parameter that will live inside that scope? I have an identifier that everything created in that scope needs passed into it. currently I do it with an inject parameter, but it would be nice to clean up all of my injection sites by just having that one common parameter live inside the scope itself
a
arnaud.giuliani
01/04/2023, 1:38 PM
inside a scope, you can use the
declare()
function to add a definition to this scope only
arnaud.giuliani
01/04/2023, 1:39 PM
you could use it a scope creation, and then request your object from inside your scope