Skip to content

Commit

Permalink
Tidy up unnecessary element refs
Browse files Browse the repository at this point in the history
  • Loading branch information
mgriffin-scottlogic committed Aug 9, 2024
1 parent 03ea38d commit af5ae83
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ <h1 class="tce-text-3xl tce-mb-6">Technology Carbon Estimator</h1>
(formReset)="handleFormReset()"></carbon-estimator-form>
</tab-item>
<tab-item [title]="'Assumptions and Limitations'">
<assumptions-and-limitation #assumptionsLimitation aria-live="polite"></assumptions-and-limitation>
<assumptions-and-limitation aria-live="polite"></assumptions-and-limitation>
</tab-item>
</tabs>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ export class TechCarbonEstimatorComponent {
public formValue: EstimatorValues | undefined;
public carbonEstimation: CarbonEstimation | null = null;

@ViewChild('assumptionsLimitation', { read: ElementRef }) assumptionsLimitation!: ElementRef;
@ViewChild('estimations') estimations!: ElementRef;
@ViewChild('showAssumptionsLimitationButton') showAssumptionsLimitationButton!: ElementRef<HTMLButtonElement>;

constructor(
private estimationService: CarbonEstimationService,
Expand Down

0 comments on commit af5ae83

Please sign in to comment.