You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
I'm reporting a bug.
When trying to inject a constant into another constant function, it just gets undefined. It should instead inject the other constant
This looks like it works as expected. A constant is basically a special version of a value - they have in common that both are not injectable, they are really just used for the simplest of use cases. I guess the docs should make that clearer.
I meant you can't inject into them, but you can inject them into other
things. So your example doesn't work because Second can't be injected with
First.
Am 03.03.2016 16:30 schrieb "Gady" [email protected]:
Thanks for the reply. But why can I inject them into a controller if
they're not injectable?
—
Reply to this email directly or view it on GitHub #14168 (comment)
.
I'm reporting a bug.
When trying to inject a constant into another constant function, it just gets undefined. It should instead inject the other constant
Here is the fiddle demo of the issue. https://jsfiddle.net/kikar/fy39qq1m/
The reason for this behavior is to be able to define a constant based on the value of another one, like API base url, based on type of enviroment.
Not working in angular 1.5.0 and 1.4.8
The text was updated successfully, but these errors were encountered: