Getting Started
Writing content
API Documentation
Customization
Recipes
API References Develop
@ng-doc/builder / Function

onDependenciesChange

Function to trigger an action when any of the provided dependencies changes.

This function returns an Observable that emits a void value whenever any of the files in the provided dependencies set changes. The Observable is created by merging Observables that emit on file changes for each dependency. When a file changes, the function filters out events that are not updates, maps the event to a void value, and emits the void value.

Presentation

function onDependenciesChange(
  dependencies: ObservableSet<string>,
): Observable<void>;

Returns

Observable<void> -

{Observable} - An Observable that emits a void value whenever any of the files in the provided dependencies set changes.

Parameters

NameTypeDescription
dependencies
ObservableSet<string>