refactor(datepicker): use ng-if to increase performance