MCPcopy Create free account
hub / github.com/TanStack/devtools / App

Class App

examples/angular/with-devtools/src/app/app.ts:21–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19 changeDetection: ChangeDetectionStrategy.OnPush,
20})
21export 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}

Callers

nothing calls this directly

Calls 3

createCounterFunction · 0.90
injectDevtoolsPluginsFunction · 0.90
updateMethod · 0.80

Tested by

no test coverage detected