I have a number of simple lookup tables within my Angular 6 app in the form of:
export const Fuel: { id: number, type: string } [] = [
{ "id": 1, "type": "Petrol" },
{ "id": 2, "type": "Diesel" },
{ "id": 3, "type": "Electric" },
{ "id": 4, "type": "Hybrid" }
];
I would like to store all of these within a single file allowing these lookup tables to be accessible by all components within a module. This post describes using environment files for storing app-settings. Is there a recommended or best practice method for achieving this?