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 Default binding scope

Returns:

this