Transloco: Pass 0 as translocoParams

Created on 6 Sep 2019  路  3Comments  路  Source: ngneat/transloco

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request
[ ] Other... Please describe:

Current behavior


If we passing 0 as dynamic value parameter it is will not be showed

Expected behavior


Showing 0 as param value

Minimal reproduction of the problem with instructions

//translation file

"cart": {
    "count": "Cart items: {{value}}"
  }

template
{{t.cart.count | translocoParams: { value: cartItems} }}

What is the motivation / use case for changing the behavior?

Environment


Angular version: 8


Browser:
- [x] Chrome (desktop) version 76
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Most helpful comment

I can't stand bugs :)

All 3 comments

It is fixed in v1.7.3. Thanks for the report.

Wow

I can't stand bugs :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

FallenRiteMonk picture FallenRiteMonk  路  8Comments

gernsdorfer picture gernsdorfer  路  4Comments

KrisHaney picture KrisHaney  路  5Comments

Newbie012 picture Newbie012  路  5Comments

zufarzhan picture zufarzhan  路  3Comments