Changing color on initial startup not working


Ion2 calendar not changing color on initial startup. It is not changing color initially. Please help me, Everything seems to work fine when I change the month forward and getting backward. Can anybody tell me how to put this on stackables. Here is my full code.

Here is my whole project

Here is my PHP script:

Can anyone tell me how to host these on stackbliz