5 ms·
Why not place the model usage in services and use the services in the controllers?
by Bahamut 12y ago
Why not place the model usage in services and use the services in the controllers?
- campbellmorgan 12y agoWhile 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.