Put in order · Angular course · Module 5: Services and DI

Injecting a Service via inject()

Arrange the line that injects a service via inject() (left to right):

Items to put in order

  • private
  • =
  • KatanaService
  • inject(
  • katanaService
  • );

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