Skip to content

Conversation

@andrewseguin
Copy link
Contributor

@andrewseguin andrewseguin commented May 26, 2021

Adds two examples that show data changing and the table re-rendering. The array-based table uses the same array and re-renders with a call to `renderRows(). The observable-based table has data changing its array references and watching new data on the stream.

Stackblitz with the observable one: https://stackblitz.com/edit/angular-gu5uju?file=src%2Fapp%2Ftable-basic-example.ts

Fixes #5917

@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 26, 2021
@andrewseguin andrewseguin added docs This issue is related to documentation merge safe and removed cla: yes PR author has agreed to Google's Contributor License Agreement labels May 26, 2021
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label May 26, 2021
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🎉

Copy link
Member

@crisbeto crisbeto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@andrewseguin andrewseguin added the action: merge The PR is ready for merge by the caretaker label May 26, 2021
@mmalerba mmalerba added the target: patch This PR is targeted for the next patch release label May 26, 2021
@mmalerba
Copy link
Contributor

@andrewseguin needs rebase

@andrewseguin andrewseguin force-pushed the table-docs-dynamic-data branch from 045e874 to 234ead9 Compare May 26, 2021 18:55
@mmalerba mmalerba merged commit 7a87ef9 into angular:master May 26, 2021
mmalerba pushed a commit that referenced this pull request May 26, 2021
* docs(material/table): add examples with changing data

* docs(material/table): flat list

* docs(material/table): flat list

(cherry picked from commit 7a87ef9)
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jun 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement docs This issue is related to documentation target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Table] Add example with dynamic data (add/remove/edit rows)

4 participants