function useRoot view code
Uses the given "sub" root to be started when the "parent" root is started.
Parameters
root: Root
The "parent" root that should use the root.
subRoot: Root
The "sub" root that should be queued.
Returns
Root
The same "parent" root for convenience.