How to call an angular controller method from kendo template? Controller is defined as data-ng-controller="feedbacksSurveyReportCtrl as vm" and the call to vm.couponStatusAsString fails with vm as undefined.
<script type="text/x-kendo-template" id="responder-template"> <table class="table table-striped"> <tbody> <tr> <th>Name</th> <th>Redeemed Date</th> <th>Coupon Status</th> </tr> # for (var i = 0; i < coupons.length; i++) { # <tr> <td>#= coupons[i].name #</td> <td> #= kendo.toString(new Date(coupons[i].redeemedDate), "g") # </td> <td> #= vm.couponStatusAsString(coupons[i].status) # </td> </tr> # } # </tbody> </table> </div> #}#</script>