Page Contents
Home > @loopback/context > Binding > applyDefaultScope
Binding.applyDefaultScope() method
Apply default scope to the binding. It only changes the scope if it’s not set yet
Signature:
applyDefaultScope(scope: BindingScope): this;
Parameters
| Parameter | Type | Description |
|---|---|---|
| scope | [BindingScope](/doc/en/lb4/apidocs.context.bindingscope.html) | Default binding scope |
Returns:
this