Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | 1x 5x 1x 5x | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { InputFormComponent } from './input-form/input-form.component';
import { SearchComponent } from './search-form/search-form.component';
import { AnalysisComponent } from './analysis/analysis.component';
import { CoTable, FormType } from './wo-table';
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule, InputFormComponent, SearchComponent, AnalysisComponent],
templateUrl: './app.component.html',
styleUrl: './app.component.css'
})
export class AppComponent{
title = 'Fyleuniverse';
tableData!: FormType; // this data will be read by 'search-form' component for updating Table.
graphData!: CoTable[]; // this data will be read by 'analyis' component for updating graph
receiveData(newData: FormType) // Recieve Data from 'input-form' component and update tableData
{
this.tableData = newData;
}
updateGraphData(newData: CoTable[]) // Recieve Data from 'search-form' component and update graphData
{
this.graphData = newData;
}
}
|