Published on August 19, 2019← Back to tips
providedIn attribute of @Injectable() decorator to make your service tree-shakable [Angular 6+].
We can specify the module for which the service needs to be injected for. Handy to create singletons.
🎉 Interested in Frontend or Indie-hacking?
I talk about the latest in frontend, along with my experience in building various (Indie) side-projects