-
Notifications
You must be signed in to change notification settings - Fork 248
How to provide custom HttpDefaultHeaders #722
Comments
IIRC what was discussed is that it should not be possible to register twice the same type for the same module: new Module()..value(foo, ...)..value(foo, ...); Overriding a binding is of course valid. |
Ok, I understand, that makes of course sense. |
How do you format Dart code on SO ? If you send me a zip with your test setup, I'll take a look (see my email address on my GH profile) |
I did this in some of my projects. To make a text block a code block just select the text and press the To activate syntax highlighting add
just before the code block with a blank line in between, not indented or
with a blank before and after Questions and answers have some links [ share | edit | close | flag ](below the tags [ dart ] [ angular-dart]). |
I have a bad reputation :( |
Why would you think that?? Ahh, just the points of SO. Nothing to worry everyone starts with 1 ;-) While setting up the sample app I saw that my attempt that failed the last time seems to work now. Event though (I assume) I got it working I find it weird how this is built. The code is on SO. |
I was curious how to solve the problem described here http://stackoverflow.com/questions/21943550
In the issues Registering the same type twice in a single module should provide an error rather than silent override of the type. #48 and [WIP]Prevent overriding providers by default (fix #48) #51 you discussed that it should not be allowed to override a binding (I don't understand why you want to prevent this).
So this seems not to be a solution for the SO question.
How can custom default headers be set then?
The text was updated successfully, but these errors were encountered: