0

In my oomponent, I have an array of array :

weekDays: Array<Array<{title:string, value:number, isChecked:boolean}>>;

The JSON structure of weekDays look like this :

enter image description here

How to access to (for example) the third value of isChecked of the the second array contained in weekDays ( weekDays1 ), IN my HTML template.

2

1 Answer 1

3

Try to add it by doing:

weekDays[1][2].isChecked or weekDays['1']['2'].isChecked
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.