Skip to content
Snippets Groups Projects
Commit 95882029 authored by Clayton, Brandon Scott's avatar Clayton, Brandon Scott
Browse files

use data component

parent 1a74b1c2
No related branches found
No related tags found
1 merge request!529NCM: Data
......@@ -5,4 +5,11 @@
<app-plots />
</ng-template>
</mat-tab>
<!-- Data tab -->
<mat-tab label="Data" [disabled]="noData()">
<ng-template matTabContent>
<app-data />
</ng-template>
</mat-tab>
</mat-tab-group>
import {Component} from '@angular/core';
import {Component, computed} from '@angular/core';
import {MatTabsModule} from '@angular/material/tabs';
import {AppService} from '../../services/app.service';
import {DataComponent} from '../data/data.component';
import {PlotsComponent} from '../plots/plots.component';
@Component({
imports: [MatTabsModule, PlotsComponent],
imports: [MatTabsModule, PlotsComponent, DataComponent],
selector: 'app-content',
standalone: true,
styleUrl: './content.component.scss',
templateUrl: './content.component.html',
})
export class ContentComponent {}
export class ContentComponent {
noData = computed(() => this.service.serviceResponse() === null);
constructor(private service: AppService) {}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment