firebase-angular: refactored todo filtering