When to Use Services/Providers/Injectables in Ionic & Angular

When to Use Services/Providers/Injectables in Ionic & Angular

Follow Josh Morony on

Learn Ionic with Josh ☕

Hey, I hope you enjoy the article.

If you want a weekly update with my newest content, access to the blog's bonus content, or you want to sign up for one of my free beginner or advanced email courses just enter your details here or in the form below.

Services, which we might also refer to as providers or injectables, are a commonly used pattern in Ionic/Angular development. Services allow us to:

  • Make methods/data available to multiple pages/components throughout our application
  • Perform complex logic or interface with external APIs/Services
  • Share a single instance of the service throughout the application, allowing for communication between pages/components

In this video, we discuss the role of services and when you should use them (as opposed to just writing logic directly into your page/component files).

Watch the video on YouTube: Click here

If you enjoyed this article, feel free to share it with your friends ☝

Check out my latest videos: