question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

md-data-table-pagination md-label doesn`t go well with ng-translate

See original GitHub issue

I’m using ng-translate to localize my application and cant manage to make md-label work with the translate filter. I think the problem lies in the way two-way bind is used in this parameter to pass both the label and the ‘of’ string in a object.

I suggest the md-label be split into two parameters and be received by value (‘@’ instead of ‘=’) so that mustache operator can be applied.

Here’s a sample of how I`d expect it to work.

 <md-data-table-pagination
    ...
    md-label-text="{{ 'PAGINATION_ROWS_PER_PAGE' | translate }}"
    md-label-of="'{{ 'PAGINATION_OF' | translate }}">
</md-data-table-pagination>

Does this proceed, or am I missing something?

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
danielbrondercommented, Aug 29, 2016

@daniel-nagy Should this issue now be fixed? I have still the same problem. The label will only be changed with reloading the page.

0reactions
karlhaascommented, Mar 31, 2016

Thx @daniel-nagy. Will update and test asap.

Read more comments on GitHub >

github_iconTop Results From Across the Web

DataTables - KivyMD 1.1.1 documentation
Data tables display sets of data across rows and columns. ... This is because the index list is needed to allow MDDataTable to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found