@threadplane/angularFunctionv0.3.7

createThreadDirectoryView

Builds the ThreadDirectoryView for a directory factory. Call it in an injection context; provideThreadDirectory does. The directory is created at once and disposed when the injection context is destroyed.

Nothing is loaded until refresh() is called, by the app or by a view that refreshes the directory when it mounts.

import { createThreadDirectoryView } from '@threadplane/angular';

Declaration · overload 1

export declare function createThreadDirectoryView<TDirectory extends ThreadDirectory>(config: ThreadDirectoryConfig<TDirectory>): ThreadDirectoryView<TDirectory>;

Type parameters

TDirectory
ThreadDirectory

Parameters

config · required
ThreadDirectoryConfig<TDirectory>

Returns

ThreadDirectoryView<TDirectory>