How to add a placeholder instead of initial number?
I would like to use a placeholder in input instead of number 0 by default.
I temporally resolved passing a new parameter (placeholder: "@?placeholder",) to the directive and changing:
if (isNull($scope.start)) $scope.start = $scope.min;
to
if (isNull($scope.start)) $scope.start = $scope.placeholder;
Sorry for the late reply; I don't actually get notified when an issue is created.
Your solution seems like a reasonable one; I will implement it as soon as I can. Thanks for sharing!
E: In your case, I'm assuming you wanted to show a text placeholder, not a number?
Yes it was my obj.
Now i'm not using this directive anymore (my customer changed the project).
Thanks anyway.
No problem. I like the idea, though so I'd like to keep this issue open for now.