Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ngmodel attached to rows not re-rendering table #32

Closed
joshterrill opened this issue Oct 3, 2016 · 1 comment
Closed

ngmodel attached to rows not re-rendering table #32

joshterrill opened this issue Oct 3, 2016 · 1 comment
Labels

Comments

@joshterrill
Copy link

Here's my table definition:

<table class="mdl-data-table mdl-js-data-table mdl-data-table--selectable mdl-shadow--2dp data-table" [mfData]="tableData" #mf="mfDataTable" [mfRowsOnPage]="dataTableRows"></table>```

And in my component I have

dataTableRows = "40"


On initial load, it loads 40 records. However, I would expect that if I had an input bound to this value:

<md-input placeholder="Number of rows" [(ngModel)]="dataTableRows">


That when I change this, it would re-render the table with the new value of rows I've entered in the input.

I have verified that the value is changing correctly, but the table is not re-rendering.
@dennis2gn8
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants