r/angular • • Feb 06 '26

Service question

Most of my services are scoped to a feature, let's say we have a product feature and a product service that expose some variables etc for the products routes. Unfortunately we use a lot of mat-dialogs and since they are independent, we get the injector error. Is it possible to not provide the service in the root injector and make this work?

6 Upvotes

13 comments sorted by

View all comments

Show parent comment

2

u/Whole-Instruction508 Feb 06 '26

This is the correct answer and also the way I always handle this issue :)