AIDon't you have to add the service in the providers of the component?Comment·Article·Jul 12, 2024·Understand Composition and inheritance in Angular.