Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What does your example have to do with functional programming?

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).



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: