New Property 'Blank'#51
Conversation
…e value in the ng-model is null, undefined or empty string. Meaningful to display 'N/A' or '-' instead of 0.
…e value in the ng-model is null, undefined or empty string. Meaningful to display 'N/A' or '-' instead of 0.
|
Thank you very much for you work. It is great. It works. But Im not convinced that this is good way to solve problem. Please look on this pull request #52 (it is available on branch |
|
Hi, thanks for the review. My though was to especially use this property as a filter, for example in a table to display a null value as '-' or 'N/A'.
However, I agree the behavior can be a little bit weird for an input if numBlank is different than a number or an empty string. But I guess, it's parameterization. Would be the same if the developer puts '@' as a decimal separator. Regards, |
|
Hey |
|
Thanks for the proposition. I can indeed spare some time to help you maintaining this module. |
|
Thanks, The main problem with this module is that it at the beginning was designed for smaller number of features. And it started scaling up, but code quality is now terrible. It is great candidate for rewriting. But Im sure that it is not worth this. |

Added a new property
blankthat allows to set a default value if the value in the ng-model is null, undefined or empty string. Meaningful to display 'N/A' or '-' instead of 0.Default value is '0'