Hi Roma,

Some things are better done in the controller, I updated the fiddle just 
enough so you should be able to pick up from here. 
<https://jsfiddle.net/mrp3qxgq/67/>

Filtering like you are doing, is better done in the controller, using some 
ES5.

        this.update= function () {
        $scope.data.model = data
          .filter(e => $scope.myDate=== undefined || TheSameDate(e))
            .filter(e => $scope.data.current === undefined || e.user === 
$scope.data.current)
            ;                   
        }

As a side-note, you should stop using $scope, and use controllers instead. 
Do yourself a favor and read through the style-guide 
<https://github.com/johnpapa/angular-styleguide>
Regards
Sander

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to