Access scope variables from a filter in AngularJS

后端 未结 2 1433
情书的邮戳
情书的邮戳 2020-12-04 23:35

I am passing date value to my custom filter this way:

angular.module(\'myapp\').
  filter(\'filterReceiptsForDate\', function () {
    return fu         


        
2条回答
  •  无人及你
    2020-12-05 00:10

    I found that this references local $scope. Not sure if this is safe way of accessing it.

提交回复
热议问题