I have decided to utilize the following data structure:
let availabilities = [
"2019-7-15" : {id: 1, ...},
"2019-7-16" : {id: 2, ...},
"2019-7-20" : {id: 3, ...}
]
However, when trying to bind it in the template, it doesn't seem to work as expected. It appears empty even though I have tested it with the following code:
{{availabilities.length}} // result: 0
{{availabilities | json}} // result: []
// ngFor directive not displaying any data.
I'm curious about this behavior and wondering what data structure would be more suitable for this scenario (such as an indexed Array of objects).