You've written two factories, pretty much exactly how AngularJS uses them, in an imperative style.
Regardless of which, this doesn't in any way solve the issue Angular Services are designed to solve (IoC).
You've written two factories, pretty much exactly how AngularJS uses them, in an imperative style.
Regardless of which, this doesn't in any way solve the issue Angular Services are designed to solve (IoC).