Y
Hacker News
new
|
ask
|
show
|
jobs
by
Bahamut
4135 days ago
Why not place the model usage in services and use the services in the controllers?
1 comments
campbellmorgan
4135 days ago
While that is a nice separation of concerns (Angular-style), it doesn't solve the problem for unit testing the controller because you still won't be able to inject a mock service into the controller without some beforeEach global variable hackery.
link