Docs
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
CodeRabbit
Cloudflare
AG Grid
SerpAPI
Netlify
OpenRouter
WorkOS
Clerk
Electric
PowerSync
Sentry
Railway
Prisma
Strapi
Unkey
Table API Reference
Column API Reference
Row API Reference
Cell API Reference
Header API Reference
Features API Reference
Static Functions API Reference
Table API Reference

injectTableContext

Function: injectTableContext()

ts
function injectTableContext<TFeatures, TData>(): Signal<AngularTable<TFeatures, TData>>;
function injectTableContext<TFeatures, TData>(): Signal<AngularTable<TFeatures, TData>>;

Defined in: packages/angular-table/src/helpers/table.ts:80

Injects the current TanStack Table instance signal.

Available when:

  • there is a nearest [tanStackTable] directive in the DI tree, or
  • the caller is rendered via *flexRender with render props containing table

Type Parameters

TFeatures

TFeatures extends TableFeatures

TData

TData extends RowData

Returns

Signal<AngularTable<TFeatures, TData>>