I know about the (change)
event Binding in angular2 but i am surprised why my code is not working as expected?
My code is here..
When the change event is called not both condition work as expected.
(change)="holiday= !holiday && employee= !employee"
When change event is called the first time it works fine but the second time it will work only for first condition i.e
holiday. In my example what I expected is both the value to be either true or false but not as expected.
Surely there is some mistake. Is there anyone who can explain the life cycle of the
(change) event properly?