-
Notifications
You must be signed in to change notification settings - Fork 5
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
#19 create results layout #22
Conversation
|
||
public onValChange(val: string) { | ||
this.selectedVal = val; | ||
this.store.dispatch(new EditResultView(val)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name is not clear. Let use set prefix for setting values. e g SetCurrentView
public selectedVal: string; | ||
|
||
constructor(private store: Store) { | ||
this.data$ = this.store.select(state => state.ShowData); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not obvious what are you going to reach by selecting observable in one component and passing to another. Let's discuss tomorrow
src/app/shared/result.actions.ts
Outdated
export class EditResultView { | ||
static readonly type = '[Result] EditView'; | ||
constructor(public payload: string) {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion to use the empty line at the end of each file for avoiding conflicts when somebody adds code to the file
@@ -0,0 +1,14 @@ | |||
<mat-button-toggle-group #group="matButtonToggleGroup" [value]="currentView" (change)="SetCurrentView(group.value)"> | |||
<mat-button-toggle value="show-data" aria-label="show-data"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
aria-label must be meaningful
No description provided.