Skip to content

Commit

Permalink
refactor(MultipleChoiceGradingComponent): Convert to standalone compo…
Browse files Browse the repository at this point in the history
…nent (#1991)
  • Loading branch information
hirokiterashima authored Nov 13, 2024
1 parent 2234ae8 commit c6c885e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 17 deletions.
6 changes: 3 additions & 3 deletions src/app/teacher/component-grading.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { EmbeddedGradingModule } from '../../assets/wise5/components/embedded/em
import { GraphGradingModule } from '../../assets/wise5/components/graph/graph-grading/graph-grading.module';
import { LabelGradingModule } from '../../assets/wise5/components/label/label-grading/label-grading.module';
import { MatchGradingModule } from '../../assets/wise5/components/match/match-grading/match-grading.module';
import { MultipleChoiceGradingModule } from '../../assets/wise5/components/multipleChoice/multiple-choice-grading/multiple-choice-grading.module';
import { OpenResponseGradingModule } from '../../assets/wise5/components/openResponse/open-response-grading/open-response-grading.module';
import { PeerChatGradingModule } from '../../assets/wise5/components/peerChat/peer-chat-grading/peer-chat-grading.module';
import { ShowGroupWorkGradingModule } from '../../assets/wise5/components/showGroupWork/show-group-work-grading/show-group-work-grading.module';
Expand All @@ -18,6 +17,7 @@ import { ComponentGradingComponent } from '../../assets/wise5/classroomMonitor/c
import { ShowMyWorkGradingModule } from '../../assets/wise5/components/showMyWork/show-my-work-grading/show-my-work-grading.module';
import { AiChatGradingModule } from '../../assets/wise5/components/aiChat/ai-chat-grading/ai-chat-grading.module';
import { ComponentStateInfoComponent } from '../../assets/wise5/common/component-state-info/component-state-info.component';
import { MultipleChoiceGradingComponent } from '../../assets/wise5/components/multipleChoice/multiple-choice-grading/multiple-choice-grading.component';

@NgModule({
declarations: [ComponentGradingComponent],
Expand All @@ -34,7 +34,7 @@ import { ComponentStateInfoComponent } from '../../assets/wise5/common/component
GraphGradingModule,
LabelGradingModule,
MatchGradingModule,
MultipleChoiceGradingModule,
MultipleChoiceGradingComponent,
OpenResponseGradingModule,
PeerChatGradingModule,
ShowGroupWorkGradingModule,
Expand All @@ -55,7 +55,7 @@ import { ComponentStateInfoComponent } from '../../assets/wise5/common/component
GraphGradingModule,
LabelGradingModule,
MatchGradingModule,
MultipleChoiceGradingModule,
MultipleChoiceGradingComponent,
OpenResponseGradingModule,
PeerChatGradingModule,
ShowGroupWorkGradingModule,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@
[componentId]="componentId"
[componentState]="componentState"
[isRevision]="isRevision"
>
</multiple-choice-show-work>
/>
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import { Component } from '@angular/core';
import { ComponentShowWorkDirective } from '../../component-show-work.directive';
import { MultipleChoiceShowWorkComponent } from '../multiple-choice-show-work/multiple-choice-show-work.component';

@Component({
imports: [MultipleChoiceShowWorkComponent],
selector: 'multiple-choice-grading',
standalone: true,
templateUrl: 'multiple-choice-grading.component.html'
})
export class MultipleChoiceGradingComponent extends ComponentShowWorkDirective {}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
[nodeId]="nodeId"
[componentId]="componentId"
[componentState]="studentWork"
>
</multiple-choice-show-work>
/>
<open-response-show-work
*ngSwitchCase="'OpenResponse'"
[nodeId]="nodeId"
Expand Down

0 comments on commit c6c885e

Please sign in to comment.