import { Component, OnInit } from '@angular/core'; import * as constants from '@assets/json-grouped-colors.json'; @Component({ selector: 'app-color-table', templateUrl: './color-table.component.html', styleUrls: ['./color-table.component.scss'], }) export class ColorTableComponent implements OnInit { public colors: any; public ngOnInit(): void { this.colors = constants.brandColors; } }