Glossary: Angular Beyond the Basics
@Injectable()
Also written: Injectable
A decorator that marks a class as a service Angular can inject. Without `providedIn: "root"`, it must be provided somewhere, such as route `providers`.
Glossary: Angular Beyond the Basics
Also written: Injectable
A decorator that marks a class as a service Angular can inject. Without `providedIn: "root"`, it must be provided somewhere, such as route `providers`.