1 import {Component, Input, OnInit, Host} from '@angular/core';
3 interface LinkTableLink {
10 selector: 'eg-link-table',
11 templateUrl: './link-table.component.html',
12 styleUrls: ['link-table.component.css'],
16 column-count: var(--columnCount);
22 export class LinkTableComponent {
23 @Input() columnCount: number;
24 links: LinkTableLink[];
32 selector: 'eg-link-table-link',
33 template: '<ng-template></ng-template>'
36 export class LinkTableLinkComponent implements OnInit {
37 @Input() label: string;
39 @Input() routerLink: string;
41 constructor(@Host() private linkTable: LinkTableComponent) {}
44 this.linkTable.links.push({
47 routerLink: this.routerLink