getting-started
What it does
This skill shows how to build a table in an Angular app with TanStack Table, from defining columns and data to displaying the rows. It is for Angular developers who want to build their own table layout.
When to use it
- ✓When you are creating an Angular component that shows a list of records in a table.
- ✓When your Angular table data comes from signals and must refresh on screen.
- ✓When you want to add Query or Virtual features to an Angular table.
Skill link
https://github.com/TanStack/table/blob/main/packages/angular-table/skills/getting-started/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“I need a table in my Angular app that shows a list of orders. How do I set it up?”
5 new skills a week. 1 minute to read.
How it works
It explains how to call injectTable inside a component, pass in columns and data, and then loop over the rows in the template using the FlexRender directive.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Load intent load @tanstack/table-core#core first for the headless model, stable inputs, and column inference.
Setup
import { Component, signal } from '@angular/core'
import { FlexRender, injectTable, tableFeatures } from '@tanstack/angular-table'
type Person = { name: string; age: number }
const features = tableFeatures({})
const columns = [
{ accessorKey: 'name', header: 'Name' },
{ accessorKey: 'age', header: 'Age' },
]
@Component({
selector: 'app-table',
imports: [FlexRender],
template: `<table>
<tbody>
@for (row of table.getRowModel().rows; track row.id) {
<tr>
@for (cell of row.getAllCells(); track cell.id) {
<td>
<ng-container *flexRenderCell="cell; let value">{{
value
}}</ng-container>
</td>
}
</tr>
}
</tbody>
</table>`,
})
export class TableComponent {
readonly data = signal<Person[]>([{ name: 'Ada', age: 36 }])
readonly table = injectTable(() => ({ features, columns, data: this.data() }))
}
Construction and rendering
Call injectTable in a component, directive, or service field initializer, or another valid Angular injection context. The adapter binds its cleanup to that context.
Signals read in the options initializer rerun it and call setOptions. Keep features, factories, and columns outside the initializer; return stable data references and derive transformed data with computed outside it.
Import FlexRender for *flexRender, *flexRenderCell, *flexRenderHeader, and *flexRenderFooter. Render values can be primitives, TemplateRef, component types, or flexRenderComponent(...). Use flexRenderComponent for Angular component types; ordinary render functions are already supported directly.
Read for the task
- When adding or configuring optional features, load
intent load @tanstack/table-core#table-featuresand read only references for the requested behavior. - For state ownership or reactive reads, read table-state.
- When tables share features, defaults, or reusable UI, read create-table-hook.
- When Query supplies data or server processing, read with-tanstack-query.
- When virtualizing rows or columns, read with-tanstack-virtual.
- When upgrading v8 code, read migrate-v8-to-v9.
API discovery
Inspect node_modules/@tanstack/angular-table/dist/types/ for the bundled public declarations. Inspect feature APIs under node_modules/@tanstack/table-core/dist/features/.
FAQ
Where should I call injectTable?
In a component or service field, or in another valid Angular injection context, so cleanup is handled for you.
What happens when my data is a signal?
The options are rerun when the signal changes, so the table updates with the new values.
Should columns be defined outside the component?
The skill recommends keeping features and columns outside the reactive options so they are not rebuilt on every update.
Details
Original description by the author
Create and render Table v9 with the angular adapter. Route reusable createTableHook components, Query and Virtual integration, and framework setup; use table-state for reactive ownership.
repo: TanStack/table
Popularity
- GitHub stars
- 29k
- Ranking position
- #9808
- License
- MIT
- Updated
- 10/21/2026
Comments
- …
More skills from this repository
getting-started
29kTeaches your agent how to build and show a data table with TanStack Table in Alpine.js, covering setup, reactive data and rendering rows.
table-state
29kTeaches your agent how to read and control table state in Alpine.js, such as the current page, so the screen updates when that state changes.
devtools
29kTeaches your agent how to register Angular tables with the TanStack Devtools panel, so developers can inspect each table while they build the app.
migrate-v8-to-v9
29kHelps your agent move an Angular table from TanStack Table v8 to v9, checking setup, rendering, state and hooks against a migration checklist.
Similar skills
angular-developer
280kHelps your agent create Angular code and give project structure advice. Useful for starting new projects, creating code parts, or improving performance and accessibility.
frontend-a11y
280kHelps your agent make web interfaces accessible to everyone. It ensures websites and apps work well with screen readers and keyboard navigation.
frontend-patterns
280kHas your agent apply modern patterns in frontend development. It optimizes performance, manages state, and follows best practices in React and Next.js.