While reading Angular Doc, we can see that ApplicationRef is referred as an Interface. So, what I should be able to do? to implement it within a component. But in reality, I can instantiate it into my component and use its methods. In addition, the angular source code reference it as a Class :

export class ApplicationRef {...}

What do I didn't get about Interfaces and OOP? Is there a mistake in the AngularDoc?

0 Answers