I’m trying to create a calendar when I select a field I change his background color and store this field data in array but when I unselect a field I reset background to normal and empty his value from the array .
in this code I created the calendar and I can only select one value and get his value .
Can someone update my code to change background of multiple fields select and store value in an array ?
https://codesandbox.io/s/dazzling-ives-kly4z
Source: Angular Questions