I am a designer and don't have much knowledge about scripting. I have a jQuery function which display number counter. I want to use this with angular model. I tried applying class in this way but it shows NAN error.
I Tried:
<td><span class="count">{{model.Conversion.Total}}</span></td>
Output:
NAN Error
Angular Code:
<td class="widthCustomtd">Total Invoices</td>
<td>{{model.Conversion.Total}}</td>
Jquery Code:
<!-- 1 to 100 Counter Class -->
<span class="count">100</span>
<!-- Function -->
$('.count').each(function () {
$(this).prop('Counter',0).animate({
Counter: $(this).text()
}, {
duration: 4000,
easing: 'swing',
step: function (now) {
$(this).text(Math.ceil(now));
}
});
});