Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
Bahamut
11y ago
0 comments
Share
Why not place the model usage in services and use the services in the controllers?
0 comments
default
newest
oldest
campbellmorgan
11y 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.
j
/
k
navigate · click thread line to collapse