Closed keepitsimple closed 2 years ago
This documention is outdated. I will update it later. Scope - is just container inside of another container. And you can define registration of provider for any scope. You can define it by level (0, 1, 2, 3...deeper). Or by assigning tags to scope. And if you make provider asSingleton().perTags('page') then it will be singleton per this whole scope and all nested one
thank you for clarification!
There are 3 possible scopes for a Provider":
Could you please clarify?