What is Child Container Resolution in Aurelia?
Now, imagine that we have a Container
named root
and we call root.createChild()
to create a child container named child. Then, we invoke child.get(A)
to resolve an instance of A
.
What will happen? First
, child
checks for a Resolver for A. If none is found, then it calls get(A)
on its parent which is the root container
from which it was created. root
then checks to see if it has a Resolver. If not, it auto-registers A in root
and then immediately calls the Resolver to get
an instance of A
.