I'm working in an existing project in angularjs
and I'm newbie.
I have the following code:
<td ng-if="obj.value != ''">{{obj.value}}</td>
I need to check whether obj.value
has decimal part or not. I yes I want to limit the decimal part to 1 digit.
I tried <td ng-if="obj.value != ''">{{obj.value|number:1}}</td>
but converts also integer values to decimals.
Any ideas?