SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 0 JavaScript

fix(ngPluralize): fix wrong text content when count is null/undefined

When `lastCount` was evaluated to an non-numeric value (e.g. "other") and
`count` was evaluated to `NaN` (e.g. `null`/`undefined`), the text content
would be (wrongly) based on the previous template.
This commits makes sure the text content is updated correctly.

In order to customize the message shown upon `null`/`undefined` one can
specify a `'NaN'` property on the `when` exression object.

Closes #10836

Closes #10841
G
Georgios Kalpakas committed
3228d3b4991af681e57de5ab079c1e1c11cf35cb
Parent: 6d173ae
Committed by Pawel Kozlowski <pkozlowski.opensource@gmail.com> on 1/24/2015, 1:01:33 PM