How can ActivatedRoute be injected via Angular DI if it's an Interface?

Viewed 50

According to Angular's docs on ActivatedRoute, it is an interface. How then am I able to inject it into a component constructor like so:

constructor (private route : ActivatedRoute) {
  console.log(route)
}

and get an instance? Especially since Typescript interfaces aren't supposed to exist after build-time!?

0 Answers
Related