7 Matching Annotations
  1. May 2023
    1. MyServiceController

      I'm not sure the Controller suffix makes sense to me here. Just MyService would be best, but we want that name for the exported constant. Maybe MyServiceClass would be tolerable since it isn't exported.

  2. Apr 2021
  3. Nov 2019
  4. Feb 2017
    1. you get a new instance of the service with each new instance of that component

      So, I take it that the Service instance will not be a singleton anymore? Whereas, if provided from the root module, it will?

  5. Aug 2016
    1. The stringSingleton() method of the Module object appears to be indistinguishable from a first-class function value. But the appearances are deceptive. The method isn’t free-standing: we could have used this in its body and it would have referred to the Module singleton object, even after the import. And it’s not the method which is passed to map — instead a transient function value is implicitly created to invoke the stringSingleton() method (this is a process known as eta-expansion) and it’s that function-value which is passed to map.