I'm trying to print this object:
export class Ricette {
nome: string;
azioni: {tempo: number, azione: string}[][]
}
export const RICETTE : Ricette[] = [
{
nome: 'Alici',
azioni: [[
{tempo: 500, azione: 'scongela'},
{tempo: 60, azione: 'nulla'}
]]
},
{
nome: 'Baccalà',
azioni: [[
{tempo: 500, azione: 'scongela'}],
[
{tempo: 210, azione: 'immerso'},
{tempo: 210, azione: 'cestello su'},
{tempo: 30, azione: 'immerso'}
]
]
},
{
nome: 'Hamburger',
azioni: [[
{tempo: 500, azione: 'scongela'}],
[
{tempo: 210, azione: 'immerso'},
{tempo: 210, azione: 'cestello su'},
{tempo: 30, azione: 'immerso'}
]
]
}
];
ricette = RICETTE;
in an html file.
the array azioni[] is going to have different length in every item of ricette.
what can I do for print the object in a html <'ul><'li><'/li><'/ul>?