How to manage Angular2 "expression has changed after it was checked" exception when a component property depends on current datetime How to manage Angular2 "expression has changed after it was checked" exception when a component property depends on current datetime angular angular