import { noop } from 'ngwr/utils';
class MyService {
private onChange: (v: string) => void = noop;
}noop
A shared function that does nothing, for a callback slot with no handler yet.
Usage
API
| Name | Description | Type | Default |
|---|---|---|---|
noop() | Does nothing. Use it as the default for a callback slot. | () => void | — |