Controller lookup problem
When I do App.__container__.lookup('controller:walletDeposit') I receive the controller that goes by the name App.WalletDepositController. If I do App.__container__.lookup('controller:wallet-deposit') it looks like I receive a auto generated controller. When I do App.__container__.lookup('controller:notacontroller') I get undefined.
Another thing to note is that if I do
aComputedFunction: function(){
return 'something';
}.property('controllers.wallet-deposit.someValue'),
it updates exactly as expected.
For the longest time I was trying to access a controller value with controllers.wallet-deposit.someValue from a template (needs adjusted accordingly) and getting the initial value of null. When I used controllers.walletDeposit.someValue I got the correct value.
Is this a bug or a mistake on my part?
You should always be using the same, normalized names. When working with Ember namespaces (App.WalletDepositController), you should use camel-cased names, not underscored or hyphenated names.