Currently, the user-defined options.inputs object is extended over the inputs object used by the service to inject dependencies into the controller. However, this means each input must be declared explicitly in the controller definition. If a defined input is then left out, angular throws an error since the injected variable is undefined.
Use case: I want to use default language within the modal controller, but allow an override in specific cases. The only way to get around this is to pass each defined input as null.
I propose that the inputs be passed in one object to the controller to simplify the interface.
Currently, the user-defined options.inputs object is extended over the inputs object used by the service to inject dependencies into the controller. However, this means each input must be declared explicitly in the controller definition. If a defined input is then left out, angular throws an error since the injected variable is undefined.
Use case: I want to use default language within the modal controller, but allow an override in specific cases. The only way to get around this is to pass each defined input as null.
I propose that the inputs be passed in one object to the controller to simplify the interface.