| 19 | changeDetection: ChangeDetectionStrategy.OnPush, |
| 20 | }) |
| 21 | export class App { |
| 22 | readonly counter = createCounter() |
| 23 | readonly devtoolsPlugins = injectDevtoolsPlugins() |
| 24 | |
| 25 | readonly increment = () => this.counter.increment() |
| 26 | readonly decrement = () => this.counter.decrement() |
| 27 | |
| 28 | readonly addPlugin = () => { |
| 29 | this.devtoolsPlugins.update((n) => [ |
| 30 | ...n, |
| 31 | { |
| 32 | name: `Custom devtools ${n.length + 1}`, |
| 33 | render: () => import('./devtools/custom-devtools-panel'), |
| 34 | }, |
| 35 | ]) |
| 36 | } |
| 37 | } |
nothing calls this directly
no test coverage detected