I\'m trying to pass the following code to an angular method for a calendar library, but I\'ve been stuck for a few days with the logic and the way of bind them into the html