Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp core library.servicescope.startnewchild

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-core-library > ServiceScope > startNewChild

ServiceScope.startNewChild() method

Constructs a new ServiceScope that is a child of the current scope.

Signature:

startNewChild(): ServiceScope;

Returns:

ServiceScope

the newly created root ServiceScope

Remarks

The service scopes form a tree structure, such that when consuming a service, if the key is not explicitly provided by a child scope, the parent hierarchy will be consulted.

Clone this wiki locally