Primeng: p-paginator totalRecords not updated

Created on 6 Mar 2017  路  3Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")
```
[ x] bug report => Search github for a similar issue or PR before submitting

this sample
http://www.primefaces.org/primeng/#/paginator
with

and in code
this.productslength = new Number(this.products.length);
this.productslength = this.products.length;

Current behavior
When i try to set the totalRecords property to not be hard coded it does not work

Expected behavior
When i try to set the totalRecords property to be bound to some variable it works as expected

What is the motivation / use case for changing the behavior?
i have to use it for items which are not inside a control and their count is like 50

Please tell us about your environment:
Win 10, "@angular/cli": "1.0.0-rc.0", node 6.10, npm 3+

  • Angular version: 2.4.8 (also with 2.2.1)

  • PrimeNG version: 2.0.2, 2.0.1, 1.1.4 - all reproducible

  • Browser: [all]

  • Language: [TypeScript "typescript": "~2.0.0" ]

Most helpful comment

you should put the paginator tag like this: .
The double brace is more common in AngularJs but it works here as well

All 3 comments

any update on this?

you should put the paginator tag like this: .
The double brace is more common in AngularJs but it works here as well

Glad to hear issue is resolved.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jisqaqov picture jisqaqov  路  3Comments

markgoho picture markgoho  路  3Comments

SchneMa picture SchneMa  路  3Comments

miresk picture miresk  路  3Comments

pchristou picture pchristou  路  3Comments