Are Angular2's services supposed to be stateless?
问题 I come from Java world where services are commonly meant to be stateless. Should be services in Angular2 also stateless? Or can we simply store the state, because we do not have to care about concurrent thread access as in Java example? At https://angular.io/docs/ts/latest/guide/router.html#!#teach-authguard-to-authenticate in AuthService class the state is stored. Is it just to simplify the example or is it a common practice? I know that services are instantiated and live for the scope where