Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
Bahamut
11y ago
0 comments
Save
Share
Why not place the model usage in services and use the services in the controllers?
0 comments
1 comments · 1 top-level
top
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