src/app/pages/tissue-info-page/tissue-info-page.component.ts
Displays TissueInfoTable on the current page
selector | ccf-tissue-info-page |
styleUrls | ./tissue-info-page.component.scss |
templateUrl | ./tissue-info-page.component.html |
Properties |
|
constructor(route: ActivatedRoute)
|
||||||
Sets data from content.ts into TissueTableInfo data
Parameters :
|
Readonly data |
Type : TissueTableInfo
|
Initializes TissueTableInfo |
descriptionData |
Default value : descriptionData
|
Description of the tissue |
tissueData |
Default value : tissueData
|
Table data of the tissue |
import { Component } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import { TissueTableInfo } from '../../components/tissue-info-table/tissue-info-table';
import { descriptionData, tissueData } from './tissue-info-page.content';
/** Displays TissueInfoTable on the current page */
@Component({
selector: 'ccf-tissue-info-page',
templateUrl: './tissue-info-page.component.html',
styleUrls: ['./tissue-info-page.component.scss'],
})
export class TissueInfoPageComponent {
/** Description of the tissue */
descriptionData = descriptionData;
/** Table data of the tissue */
tissueData = tissueData;
/** Initializes TissueTableInfo */
readonly data: TissueTableInfo;
/** Sets data from content.ts into TissueTableInfo data */
constructor(route: ActivatedRoute) {
this.data = route.snapshot.data['content'];
}
}
<div style="padding-top: 2rem">
<ccf-page-data [data]="descriptionData"></ccf-page-data>
</div>
<ccf-tissue-info [data]="data"></ccf-tissue-info>
./tissue-info-page.component.scss
:host {
max-width: 77rem;
}