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

I'm for using services to define whatever object used across controllers and other services. Using rootscope or scope inheritance is very tricky in AngularJS


Agreed. Any utility functions should go into a different service.

Using $rootScope feels like a hack.




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

Search: