<commit_before># Angular Date Picker Polyfill

This is an [HTML5 date input](http://diveintohtml5.info/forms.html#type-date) polyfill for Angular.js. For browsers such as Chrome and Safari for iOS, the native datepicker will be used and this directive will have no effect, but for others it will add a datepicker popup to inputs of type `date` and `datetime-local`.

## Dependencies

* Angular 1.3+
* Modernizr

## Usage

First, you'll need to include the javascript and css file and include 'angular-date-picker-polyfill' as a dependency in your angular module.

```javascript
angular.module('myApp', ['angular-date-picker-polyfill']);
```

Next, it will simply work for any date inputs in your app:

```html
<input type='date' ng-model='myDate' />
```

Angular 1.3 has built-in support for date inputs and takes care of setting validity on the field. But note that your model must be a javascript date object. It will not parse dates for you.

If you want to apply it to a normal text field, you can just add the `aa-date-input` attribute like so:

```html
<input type='text' ng-model='myDate' aa-date-input />
```

And if you want to use it on a non-input element, you can do something like the following:

```html
<button type='button' tabindex='0' ng-model='myDate' aa-date-input>
  <span ng-show='myDate'>{{ myDate | date:'shortDate'}}</span>
  <span ng-hide='myDate'>Not Set</span>
</button>
```

Note the `tabindex` attribute. This will allow the button (or any other element) to gain focus like a normal form field.

Support for inputs of type `datetime-local` is coming soon.

## Theming

There is a very basic theme provided. Others may be added later and I would love for others to contribute additional ones.

## Browser Support

Coming Soon

## Development

### Requirements:

* NPM
* gulp

After cloning the repository, run the following to install the dependencies:

```sh
npm install && bower install
```

Then to watch and compile assets:
```sh
gulp dev
```

And to run the tests:
```
npm run spec
```

## Contributing

Contributions are welcome. Whenever possible, please include test coverage with your contribution.

1. Fork it<commit_msg>Readme Tweaks<commit_after># Angular Date Picker Polyfill

This is an [HTML5 date input](http://diveintohtml5.info/forms.html#type-date) polyfill for Angular.js. For browsers such as Chrome and Safari for iOS, the native datepicker will be used and this directive will have no effect, but for others it will add a datepicker popup to inputs of type `date` and `datetime-local`.

## Dependencies

* Angular 1.3+
* Modernizr

## Usage

First, you'll need to include the javascript and css file and include 'angular-date-picker-polyfill' as a dependency in your angular module.

```javascript
angular.module('myApp', ['angular-date-picker-polyfill']);
```

Next, it will simply work for any date inputs in your app:

```html
<input type='date' ng-model='myDate' />
```

Angular 1.3 has built-in support for date inputs and takes care of setting validity on the field. But note that your model must be a javascript date object. It will not parse dates for you.

If you want to apply it to a normal text field, you can just add the `aa-date-input` attribute like so:

```html
<input type='text' ng-model='myDate' aa-date-input />
```

And if you want to use it on a non-input element, you can do something like the following:

```html
<button type='button' tabindex='0' ng-model='myDate' aa-date-input>
  <span ng-show='myDate'>{{ myDate | date:'shortDate'}}</span>
  <span ng-hide='myDate'>Not Set</span>
</button>
```

Note the `tabindex` attribute. This will allow the button (or any other element) to gain focus like a normal form field.

**Support for inputs of type `datetime-local` is coming soon.**

## Theming

There is a very basic theme provided. Others may be added later and I would love for others to contribute additional ones.

## Browser Support

Coming Soon

## Development

### Requirements:

* [NPM](https://www.npmjs.com)
* [Gulp](http://gulpjs.com)
* [PhantomJS](http://phantomjs.org)

After cloning the repository, run the following to install the dependencies:

```sh
npm install && bower install
```

Then to watch and compile assets:
```sh
gulp dev
```

And to run the tests:
```
npm run spec
```

## Contributing

Contributions are welcome. Whenever possible, please include test coverage with your contribution.

1. Fork it
{'fraction_non_alphanumeric': 0.10440308669995461, 'fraction_numerical': 0.003631411711302769, 'mean_word_length': 4.374390243902439, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6041101', 'n_tokens_mistral': 1350, 'n_tokens_neox': 1265, 'n_words': 597}