Question · Angular course · Module 5: Services and DI

Responsibilities of a Service

According to the lesson, what is a Service responsible for in Angular?

Answer options

  • Rendering the component's HTML template
  • Business logic, API communication, and state sharing
  • Defining routes (routing) in the application
  • The CSS styles of components

You can check the correct answer by solving this task in the CodeWorlds game.