// See https://github.com/angular-ui/bootstrap/issues/2659

formsAngular.directive('uiDate', function (){
  return {
    restrict: 'EAC',
    require: 'ngModel',
    link: function(scope, element, attr, controller) {
      //remove the default formatter from the input directive to prevent conflict
      controller.$formatters.shift();
    }
  }
});

// See https://github.com/angular-ui/bootstrap/issues/2659

formsAngular.directive('datepickerPopupFix', function (){
  return {
    restrict: 'EAC',
    require: 'ngModel',
    link: function(scope, element, attr, controller) {
      //remove the default formatter from the input directive to prevent conflict
      controller.$formatters.shift();
    }
  }
});

Rename the directive