Closed KevinJue closed 6 years ago
Actually we can just make:
{{'STORE.STOREFOUND' | translate:numberOfStores}}
and create the object in the ts files like that:
numberOfStores = { count: 0 };
@KevinJue You could also omit the quotes around your count object:
{{'STORE.STOREFOUND' | translate:{ count: numberOfStores } }}
Pay attention for the last space in @lemoinem message https://github.com/angular/angular/issues/9571
Hello,
I'm actually trying to use pluralization, it work fine like that:
output look like it should be.
But i'm trying to use a dynamic value for the count
{{'STORE.STOREFOUND' | translate:"{ count: {{numberOfStores}} }"}}
@lephyrus is it possible, because i found any solution on your readme ?