We already have inSingletonScope in Insersify JS. What is the purpose of using .toConstantValue? Could anyone let me know when do we want to use .toConstantValue?
Asked
Active
Viewed 930 times
2
-
You can find here https://github.com/inversify/InversifyJS/blob/89ecfd7cf8270ec77ea4a896d5519c6ab92d8161/wiki/recipes.md some recipes – captain-yossarian from Ukraine Nov 22 '20 at 19:47
-
I saw that. I just don't understand why we bind a container to a constant? – user3123690 Nov 22 '20 at 19:54