@Neppord @alex_gaynor it's deprecated and extremely unidiomatic. It doesn't appear anywhere in the docs.
@Neppord you can inject a stub store in testing if you want, or switch to an alternate adapter (like fixtures)
-
-
@wycats if i cant do dependency injection then i must use global state, or rely on magic... -
@Neppord You can do dependency injection with the store via App.inject or initializers. -
@wycats if i remember correctly then those injects are not per class basis. And it's not enough to only be able to load your store. -
@Neppord The injections are per-class. What do you mean? -
@wycats are you reffering tho what is said here on injectors? http://emberjs.com/blog/2013/02/15/ember-1-0-rc.html … or is there new info? -
@Neppord App.register('controller:post', ...) is registering an injection per class. -
@wycats so every instance of a controller get a "post" member injected that is of the class/type given by the second argument? -
@Neppord App.inject('controller:comment', 'postController', 'controller:post') injects postController into instances of CommentController - 2 more replies
New conversation -
-
-
@wycats if you need a library (except for the test runner ofc) to be able to test your code... Then that is a smell.Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.