-
Notifications
You must be signed in to change notification settings - Fork 42
How to pass parameters in config? #40
Comments
Oops, I forgot I had a unanswered question. Sorry about it! With the latest snapshot, it became possible to use the constructor based DI and it will use a variable's name to resolve the dependency when its type does not have In short, you can just register your Config class normally, like : module.config[MyConfig] And then, declare those parameters as constructor arguments of your However, I haven't yet tested it myself, so if it does not work please let me know! |
I think I'm bumping up into this same error. Specifically, I am trying to provide a routing config with a dependency on a
And here is my registry service:
And here is part of my app main:
|
@cridmann Could you give me the error message you encountered? And does it occur when you register the modules, or when you do something with them? Sorry for the late response. |
When using e.g. ionic, you can do something like this in Javascript:
How do you do this with scalajs-angular?
The text was updated successfully, but these errors were encountered: