-
Notifications
You must be signed in to change notification settings - Fork 916
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class active on Todos filter not showing up #524
Comments
Hi @bhahn57570 ! Sounds good, would you be willing to submit a pull request to fix this? Cheers! |
Hi Sorry for the late response, I am quite busy these days.
Yes, I would like to submit a pull request, I will do it next week. Is it
ok for you?
I am just not familiar with GitHub, I just have to push on a specific
branch and after asking you for a pull request that it?
Thanks a lot for the project it helped me a lot to start with angular.
Cheers!
Le dim. 10 mai 2020 à 13:58, Tomas Trajan <notifications@github.com> a
écrit :
… Hi @bhahn57570 <https://github.com/bhahn57570> !
Sounds good, would you be willing to submit a pull request to fix this?
Cheers!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#524 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AJKGDWIXBCOVM5TL6YYPHKLRQ2JIBANCNFSM4M3WRIXA>
.
|
Hi @bhahn57570 ! No worries, there is enough time! The way to do it on github is first to Once you do it, Github will allow you to open pull request based on your fork, you should see that button just by visiting this repository. Hope that helps! Cheers, |
fix(#524): class active on Todos filter not showing up
The view todos-container.component.html is giving an error on
[ngClass]="{ active: todos.filter === 'ACTIVE' }
Indeed todos.filter does not exist instead add in todos-container.component.ts
filter$: Observable<TodosFilter>; .... ngOnInit() { this.todos$ = this.store.pipe(select(selectTodos)); this.filter$ = this.store.pipe(select(selectTodosFilter)); this.removeDoneDisabled$ = this.store.pipe( select(selectRemoveDoneTodosDisabled) ); }
And in the view
<button mat-menu-item (click)="onFilterTodos('ALL')" [class.active]="(filter$ | async) === 'ALL'" rtl>
The ngClass directive is removed because in the official documentation it's written
The text was updated successfully, but these errors were encountered: