Page Contents

Home > @loopback/context > Context > createView

Context.createView() method

Create a view of the context chain with the given binding filter

Signature:

createView<T = unknown>(filter: BindingFilter, comparator?: BindingComparator): ContextView<T>;

Parameters

Parameter Type Description
filter BindingFilter A function to match bindings
comparator BindingComparator A function to sort matched bindings

Returns:

ContextView<T>