You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/angular-table/src/injectTable.ts
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -39,47 +39,47 @@ export type AngularTable<
39
39
40
40
/**
41
41
* Creates and returns an Angular-reactive table instance.
42
-
*
42
+
*
43
43
* The initializer is intentionally re-evaluated whenever any signal read inside it changes.
44
44
* This is how the adapter keeps the table in sync with Angular's reactivity model.
45
45
*
46
46
* Because of that behavior, keep expensive/static values (for example `columns`, feature setup, row models)
47
-
* as stable references outside the initializer, and only read reactive state (`data()`, pagination/filter/sorting signals, etc.)
47
+
* as stable references outside the initializer, and only read reactive state (`data()`, pagination/filter/sorting signals, etc.)
48
48
* inside it.
49
49
*
50
50
* The returned table is also signal-reactive: table state and table APIs are wired for Angular signals, so you can safely consume table methods inside `computed(...)` and `effect(...)`.
51
-
*
51
+
*
52
52
* @example
53
53
* 1. Register the table features you need
54
54
* ```ts
55
55
* // Register only the features you need
56
56
* import {tableFeatures, rowPaginationFeature} from '@tanstack/angular-table';
57
-
* const _features = tableFeatures({
57
+
* const _features = tableFeatures({
58
58
* rowPaginationFeature,
59
59
* // ...all other features you need
60
60
* })
61
-
*
61
+
*
62
62
* // Use all table core features
63
63
* import {stockFeatures} from '@tanstack/angular-table';
64
64
* const _features = tableFeatures(stockFeatures);
65
65
* ```
66
66
* 2. Prepare the table columns
67
67
* ```ts
68
68
* import {ColumnDef} from '@tanstack/angular-table';
0 commit comments