fix(datepicker): Fix 'datepicker-mode'

$scope.datepickerMode is not defined either add to configuration attribute iteration or change and get the attribute outside the iteration