151
rated 0 times
[
153]
[
2]
/ answers: 1 / hits: 16109
/ 10 Years ago, thu, may 8, 2014, 12:00:00
I know how to convert a string to an integer in the controller
parseInt( $scope.date)
But i have to do this in the view
<span data-ng-show=item.date>{{ item.date | hbdatetime }}</span>
In the view itself i have to convert the date ( which i am getting as a string ) to an integer so that i can filter with hbdatetime .
I am trying something like this
// <data-ng-show=item.date>parseInt{{ item.date | hbdatetime }}</span>
Please help in angular way
More From » angularjs