angular onclick select multiple fields get value and change background color


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 ?

Source: Angular Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.