{"_id":"angular-ui-date","_rev":"13-fb509c64b0d969e6ab8336b179c21853","name":"angular-ui-date","description":"This directive allows you to add a date-picker to your form elements.","dist-tags":{"latest":"1.1.1","next":"1.0.0-beta.3"},"versions":{"0.0.11":{"name":"angular-ui-date","version":"0.0.11","description":"This directive allows you to add a date-picker to your form elements.","main":"src/date.js","scripts":{"changelog":"conventional-changelog -p angular -i CHANGELOG.md -w","commit":"git-cz","lint":"eslint src/** test/** --ext .js","update":"bower update","pretest":"npm run update","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^0.5.1","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","jasmine-core":"^2.4.1","karma":"^0.13.15","karma-chrome-launcher":"^0.2.2","karma-firefox-launcher":"^0.1.7","karma-jasmine":"^0.3.6"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"3c205ed4f1cc959b35de2ecc3e23d91164fde2f4","_id":"angular-ui-date@0.0.11","_shasum":"fd24e7d349503d12f32dc793330ccf45778a9493","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"fd24e7d349503d12f32dc793330ccf45778a9493","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-0.0.11.tgz","integrity":"sha512-631WHMAwzNuml0+89aJLwZB3SBV/pwNUhA1OaFEHDnbHSeaX/1GQANsv2Q3xzFHdBRe71bUtcGxcxa1b/uAHiA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE7gpWgycpxJsCVdenpOHOJKvurCA8MR/kSOeTACv+a0AiBwkFqMJyIpwJ7SoLRQvdUF+5fZjg5QnIayB8TOFpcvzA=="}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}]},"1.0.0-beta.0":{"name":"angular-ui-date","version":"1.0.0-beta.0","description":"This directive allows you to add a date-picker to your form elements.","main":"dist/date.js","scripts":{"build":"npm run test && webpack","changelog":"conventional-changelog -p angular -i CHANGELOG.md -w","commit":"git-cz","lint":"eslint src/** --ext .js","update":"bower update","start":"webpack-dev-server","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run","test:ci":"TRAVIS=true npm run test"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"angular":"^1.4.0","angular-mocks":"^1.4.0","babel-core":"6.3.15","babel-loader":"6.2.0","babel-preset-es2015":"6.3.13","bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^0.5.1","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","exports-loader":"0.6.2","expose-loader":"0.7.1","jasmine-core":"^2.4.1","jquery":"2.1.4","jquery-ui":"1.10.5","karma":"^0.13.15","karma-chrome-launcher":"^0.2.2","karma-firefox-launcher":"^0.1.7","karma-jasmine":"^0.3.6","karma-webpack":"1.7.0","webpack":"1.12.9","webpack-dev-server":"1.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"d8404af8a345b631f8e072f17d661cd59d164063","_id":"angular-ui-date@1.0.0-beta.0","_shasum":"a242cfbb3b9c6029dba97dc8d39b9337b764777d","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"a242cfbb3b9c6029dba97dc8d39b9337b764777d","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-1.0.0-beta.0.tgz","integrity":"sha512-7MOPlcoNROYnX8oO2HvMydwfnheEp3X6VMLCwM1t/5xhk1YFptnGjo3opelbqYH5mvay3tr+quEHJ51HOSna7g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGEYhpmCOGj2UobD666QDSUSxKIAG/5jyVBLeAiBIpQgIgSPfyVsco6GSv93YvV/5LnlMFA/TE5uJPrtsANC5HKN0="}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}]},"1.0.0-beta.1":{"name":"angular-ui-date","version":"1.0.0-beta.1","description":"This directive allows you to add a date-picker to your form elements.","main":"dist/date.js","scripts":{"build":"npm run test && webpack","changelog":"conventional-changelog -p angular -i CHANGELOG.md -w","commit":"git-cz","lint":"eslint src/** --ext .js","update":"bower update","start":"webpack-dev-server","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run","test:ci":"TRAVIS=true npm run test"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"angular":"^1.4.0","angular-mocks":"^1.4.0","babel-core":"6.3.15","babel-loader":"6.2.0","babel-preset-es2015":"6.3.13","bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^0.5.1","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","exports-loader":"0.6.2","expose-loader":"0.7.1","jasmine-core":"^2.4.1","jquery":"2.1.4","jquery-ui":"1.10.5","karma":"^0.13.15","karma-chrome-launcher":"^0.2.2","karma-firefox-launcher":"^0.1.7","karma-jasmine":"^0.3.6","karma-webpack":"1.7.0","webpack":"1.12.9","webpack-dev-server":"1.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"a653b5d584cebba3d6d58211a510bcb99638bcb5","_id":"angular-ui-date@1.0.0-beta.1","_shasum":"dd1191d0e52f123be3d59524d06d7f4fc087a099","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"dd1191d0e52f123be3d59524d06d7f4fc087a099","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-1.0.0-beta.1.tgz","integrity":"sha512-BB7CqGRZIZuOP7f3wT0gEG33ez8Gd+0n3NA3L9XdxmLxn/6gbdpmfLXZPE03nRd1bB9d9uHg6SMto1ju2Moijw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsgHfecLmp6nwIdjQGzFZzTn+VFXoeB9+7S7j0CA8OpAiBee9ets+1AwRMmu9dLpKVD9aWdM33IPlvRKSJSYAIcLw=="}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}]},"1.0.0-beta.3":{"name":"angular-ui-date","version":"1.0.0-beta.3","description":"This directive allows you to add a date-picker to your form elements.","main":"dist/date.js","scripts":{"build":"npm run test && webpack","changelog":"conventional-changelog -p angular -i CHANGELOG.md -w","commit":"git-cz","lint":"eslint src/** --ext .js","update":"bower update","start":"webpack-dev-server","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run","test:ci":"TRAVIS=true npm run test"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"angular":"^1.4.0","angular-mocks":"^1.4.0","babel-core":"6.3.15","babel-loader":"6.2.0","babel-preset-es2015":"6.3.13","bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^0.5.1","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","exports-loader":"0.6.2","expose-loader":"0.7.1","jasmine-core":"^2.4.1","jquery":"2.1.4","jquery-ui":"1.10.5","karma":"^0.13.15","karma-chrome-launcher":"^0.2.2","karma-firefox-launcher":"^0.1.7","karma-jasmine":"^0.3.6","karma-webpack":"1.7.0","webpack":"1.12.9","webpack-dev-server":"1.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"faaefefcc3fc0c740fcc069a6d1792fcded1b1ce","_id":"angular-ui-date@1.0.0-beta.3","_shasum":"d2363e23d0a7bf25da0c74805e0746f1f68cf6e9","_from":".","_npmVersion":"3.3.12","_nodeVersion":"5.1.1","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"d2363e23d0a7bf25da0c74805e0746f1f68cf6e9","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-1.0.0-beta.3.tgz","integrity":"sha512-EIKtPiRQ2ktFAPe8bbvHOainj7nH+5V0KrzfYb9/k+xYmtGkgzXc05eK+5TUQHQ5RYUcgbUyoFoO/uz3r/hMNw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoK/c0XiEaAO6PbX5+2gY0u59FKnv1/FZ6VZWfpgdyIAiEA4UBrIRvkN2u98r09d+BH+r3ptmdcusqbDmBldOP/+Q0="}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}]},"1.0.0":{"name":"angular-ui-date","version":"1.0.0","description":"This directive allows you to add a date-picker to your form elements.","main":"dist/date.js","scripts":{"build":"npm run test && webpack","changelog":"conventional-changelog -p angular -i CHANGELOG.md -w","commit":"git-cz","lint":"eslint src/** --ext .js","update":"bower update","start":"webpack-dev-server","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run","test:ci":"TRAVIS=true npm run test"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"angular":"^1.4.0","angular-mocks":"^1.4.0","babel-core":"6.3.15","babel-loader":"6.2.0","babel-preset-es2015":"6.3.13","bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^0.5.1","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","exports-loader":"0.6.2","expose-loader":"0.7.1","jasmine-core":"^2.4.1","jquery":"2.1.4","jquery-ui":"1.10.5","karma":"^0.13.15","karma-chrome-launcher":"^0.2.2","karma-firefox-launcher":"^0.1.7","karma-jasmine":"^0.3.6","karma-webpack":"1.7.0","webpack":"1.12.9","webpack-dev-server":"1.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"e937ab35c805345c8e2def23a10350ebc2e82564","_id":"angular-ui-date@1.0.0","_shasum":"369aadeb25861e886dade8d43fe17d3979f6a698","_from":".","_npmVersion":"3.7.2","_nodeVersion":"5.6.0","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"369aadeb25861e886dade8d43fe17d3979f6a698","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-1.0.0.tgz","integrity":"sha512-DPut/hhUjTm5aCVe7OInrFavPXAfBhgMX9YK7PqIWZX8CUObsy27dVqMpy+Nggbgp1y35xnao8DsQWg2eDugZQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB9TlHeT/RCzRo5ie4by1fPDM3AN+KHVJA2G7dW3zbtqAiEA9zZOfuXgl6rXJwBBHPI7wsDEvN9UOayllPmVR/41RBY="}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-5-east.internal.npmjs.com","tmp":"tmp/angular-ui-date-1.0.0.tgz_1455824131336_0.23334141168743372"}},"1.0.1":{"name":"angular-ui-date","version":"1.0.1","description":"This directive allows you to add a date-picker to your form elements.","main":"dist/date.js","scripts":{"build":"npm run test && webpack","changelog":"conventional-changelog -p angular -i CHANGELOG.md -w","commit":"git-cz","lint":"eslint src/** --ext .js","update":"bower update","start":"webpack-dev-server","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run","test:ci":"TRAVIS=true npm run test"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"angular":"^1.4.0","angular-mocks":"^1.4.0","babel-core":"6.3.15","babel-loader":"6.2.0","babel-preset-es2015":"6.3.13","bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^0.5.1","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","exports-loader":"0.6.2","expose-loader":"0.7.1","jasmine-core":"^2.4.1","jquery":"2.1.4","jquery-ui":"1.10.5","karma":"^0.13.15","karma-chrome-launcher":"^0.2.2","karma-firefox-launcher":"^0.1.7","karma-jasmine":"^0.3.6","karma-webpack":"1.7.0","webpack":"1.12.9","webpack-dev-server":"1.14.0"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"1cce6816972a5cb7247894823ea42bc2ebe837b1","_id":"angular-ui-date@1.0.1","_shasum":"de8442a4f35a81cc55825be0879786060f4b3a79","_from":".","_npmVersion":"3.7.3","_nodeVersion":"5.9.0","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"de8442a4f35a81cc55825be0879786060f4b3a79","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-1.0.1.tgz","integrity":"sha512-kxM3IZTTFYWeEk0eJuX+0unYs+7fOkNOL8PNnpIjInCu4EWFF6dy7LyQYgmK6GTNE9oqL3gQvXjFpWvLqgE1Kw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFKrIpIpXGOdb0eYWaUMkhRaPjSdccfS8UZwx/HsghhgAiEAphxagZJcPTpWaOecWCnUTTHV/xPBgeEGXnkvuDouvwQ="}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/angular-ui-date-1.0.1.tgz_1459391239384_0.8263795201200992"}},"1.1.1":{"name":"angular-ui-date","version":"1.1.1","description":"This directive allows you to add a date-picker to your form elements.","main":"dist/date.js","scripts":{"build":"npm run test && webpack","changelog":"conventional-changelog -p angular -i CHANGELOG.md --same-file","commit":"git-cz","lint":"eslint src/** --ext .js","update":"bower update","start":"webpack-dev-server","test":"npm run lint && karma start --single-run","test:watch":"karma start","test:single":"karma start --single-run","test:ci":"TRAVIS=true npm run test"},"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"license":"MIT","homepage":"http://angular-ui.github.com/ui-date","bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"keywords":["AngularJS","directive","datepicker"],"devDependencies":{"angular":"^1.4.0","angular-mocks":"^1.4.0","babel-core":"6.9.1","babel-loader":"6.2.4","babel-preset-es2015":"6.9.0","bower":"^1.7.0","commitizen":"^2.4.6","conventional-changelog":"^1.1.0","conventional-changelog-cli":"1.2.0","cz-conventional-changelog":"^1.1.5","eslint":"^1.10.3","exports-loader":"0.6.2","expose-loader":"0.7.1","jasmine-core":"^2.4.1","jquery":"2.1.4","jquery-ui":"1.10.5","karma":"^0.13.15","karma-chrome-launcher":"^1.0.1","karma-firefox-launcher":"^1.0.0","karma-jasmine":"^1.0.2","karma-webpack":"1.7.0","webpack":"1.13.1","webpack-dev-server":"1.14.1"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"a3f33ace595bb1bd9f038ee806bab2e97652d140","_id":"angular-ui-date@1.1.1","_shasum":"31e08c467dc89c7bba99416c366640d22cc8effd","_from":".","_npmVersion":"3.8.9","_nodeVersion":"6.1.0","_npmUser":{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"},"dist":{"shasum":"31e08c467dc89c7bba99416c366640d22cc8effd","tarball":"https://registry.npmjs.org/angular-ui-date/-/angular-ui-date-1.1.1.tgz","integrity":"sha512-bFyldeFadIDSMpvjkAHR9JBEti+Gxhstwu6PN/awKrPwOkBIBWVOqmdOE1lO3QsvvF1/ykMZFP+GOFLLwunnpA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnYrnwCQW54g+ddwuKloWikYzshwBxl2f3Iy3y/JoEWwIhAIPA/S5sVZRQ6tFprRXy+cW9zxxR+36x9G1Xv+MPsWHv"}]},"maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/angular-ui-date-1.1.1.tgz_1464886521916_0.5397069603204727"}}},"readme":"# ui-date directive [![Build Status](https://travis-ci.org/angular-ui/ui-date.svg)](https://travis-ci.org/angular-ui/ui-date)\n\nThis directive allows you to add a date-picker to your form elements.\n\n# Alternatives\n\nWe recommend using the excellent [ui-bootstrap](https://angular-ui.github.io/bootstrap/) date-picker which is maintained by a larger team.  \n\nWARNING: Support for this module may eventually be phased out as angular 2.0 arrives as there are no plans to move this to angular 2 at this time.\n\n# Requirements\n\n- JQuery\n- JQueryUI\n- AngularJS\n\n# Bower Usage\n\nYou may use [bower](http://bower.io/) for dependency management but would recommend using webpack or browserify for modules.\n\nInstall and save to bower.json by running:\n\n    bower install angular-ui-date --save\n\nThis will copy the ui-date files into your `bower_components` folder, along with its dependencies.\n\nAdd the css:\n\n```html\n<link rel=\"stylesheet\" href=\"bower_components/jquery-ui/themes/smoothness/jquery-ui.css\"/>\n```\n\nLoad the script files in your application:\n\n```html\n<script type=\"text/javascript\" src=\"bower_components/jquery/jquery.js\"></script>\n<script type=\"text/javascript\" src=\"bower_components/jquery-ui/jquery-ui.js\"></script>\n<script type=\"text/javascript\" src=\"bower_components/angular/angular.js\"></script>\n<script type=\"text/javascript\" src=\"bower_components/angular-ui-date/dist/date.js\"></script>\n```\n\nAdd the date module as a dependency to your application module:\n\n```js\nangular.module('MyApp', ['ui.date'])\n```\n\nApply the directive to your form elements:\n\n```html\n<input ui-date>\n```\n\n## Options\n\nAll the jQueryUI DatePicker options can be passed through the directive.\n\n```js\nmyAppModule.controller('MyController', function($scope) {\n  $scope.dateOptions = {\n    changeYear: true,\n    changeMonth: true,\n    yearRange: '1900:-0'\n    };\n});\n```\n\n```html\n    <input ui-date=\"dateOptions\" name=\"DateOfBirth\">\n```\n\n## Static Inline Picker\n\nIf you want a static picker then simply apply the directive to a div rather than an input element.\n\n```html\n<div ui-date=\"dateOptions\" name=\"DateOfBirth\"></div>\n```\n\n## Working with ng-model\n\nThe ui-date directive plays nicely with ng-model and validation directives such as ng-required.\n\nIf you add the ng-model directive to same the element as ui-date then the picked date is automatically synchronized with the model value.\n\n_The ui-date directive stores and expects the model value to be a standard javascript Date object._\n\n## ui-date-format directive\n\nThe ui-date directive only works with Date objects.\nIf you want to pass date strings to and from the date directive via ng-model then you must use the ui-date-format directive.\nThis directive specifies the format of the date string that will be expected in the ng-model.\nThe format string syntax is that defined by the JQueryUI Date picker. For example\n\n```html\n<input ui-date ui-date-format=\"DD, d MM, yy\" ng-model=\"myDate\">\n```\n\nNow you can set myDate in the controller.\n\n```js\n$scope.myDate = \"Thursday, 11 October, 2012\";\n```\n\n## ng-required directive\n\nIf you apply the required directive to element then the form element is invalid until a date is picked.\n\nNote: Remember that the ng-required directive must be explictly set, i.e. to \"true\".  This is especially true on divs:\n\n```html\n<div ui-date=\"dateOptions\" name=\"DateOfBirth\" ng-required=\"true\"></div>\n```\n\n## focusing the next element for tabbing\n\nThere is a problem with IE that re-opens the datepicker on focus().  However, this breaks tabbing.  If tabbing is more\nimportant than IE for your use cases, pass in the onClose option.\n\n```javascript\nmyAppModule.controller('MyController', function($scope) {\n  $scope.dateOptions = {\n      onClose: (value, picker, $element) => {\n        $element.focus()\n      }\n    };\n});\n```\n\n## Usage with webpack\n\nInstall with npm:\n\n    npm install --save-dev jquery jquery-ui angular angular-ui-date\n\nUse in your app:\n\n```javascript\nimport angular from 'angular';\nimport uiDate from 'angular-ui-date';\n\nrequire('jquery-ui/themes/base/minified/jquery-ui.min.css');\n\nangular.module('MyTest', [uiDate.name])\n.controller('MyCtrl', ['$scope', function($scope) {\n    $scope.myDate = new Date('2015-11-17');\n}]);\n```\n\nIt is also good to ensure that jQuery is available so that angular and jquery ui can attach to it.\n\n```javascript\n    webpack: {\n      plugins: [\n        new webpack.ProvidePlugin({\n          'window.jQuery': 'jquery',\n        }),\n      ]\n    }\n```\n\nanother method of making jQuery recognized is to use the webpack expose-loader to expose it both as $ and jQuery\n\n```javascript\n    webpack: {\n      module: {\n        loaders: [\n                  // it helps angular to have jQuery exposed so that it uses $ instead of jqLite      \n                   {\n                     test: require.resolve('jquery'),\n                     loader: 'expose?$!expose?jQuery',\n                   },\n                ]\n              }\n            }\n```\n## Need help?\nNeed help using UI date?\n\n* Ask a question in [StackOverflow](http://stackoverflow.com/) under the [angular-ui-date](http://stackoverflow.com/questions/tagged/angular-ui-date) tag.\n\n**Please do not create new issues in this repository to ask questions about using UI date**\n\n## Found a bug?\nPlease take a look at [CONTRIBUTING.md](CONTRIBUTING.md#you-think-youve-found-a-bug).\n\n# Contributing to the project\n\nWe are always looking for the quality contributions! Please check the [CONTRIBUTING.md](CONTRIBUTING.md) for the contribution guidelines.\n","maintainers":[{"name":"alexanderchan","email":"alexander.m.chan@gmail.com"}],"time":{"modified":"2022-06-13T02:58:59.379Z","created":"2015-12-08T17:21:38.354Z","0.0.11":"2015-12-08T17:21:38.354Z","1.0.0-beta.0":"2015-12-09T19:30:23.315Z","1.0.0-beta.1":"2015-12-09T20:11:50.997Z","1.0.0-beta.3":"2015-12-30T17:20:49.882Z","1.0.0":"2016-02-18T19:35:34.000Z","1.0.1":"2016-03-31T02:27:22.584Z","1.1.1":"2016-06-02T16:55:26.176Z"},"homepage":"http://angular-ui.github.com/ui-date","keywords":["AngularJS","directive","datepicker"],"repository":{"type":"git","url":"git+ssh://git@github.com/angular-ui/ui-date.git"},"author":{"name":"https://github.com/angular-ui/ui-date/graphs/contributors"},"bugs":{"url":"https://github.com/angular-ui/ui-date/issues"},"license":"MIT","readmeFilename":"README.md","users":{"firerishi":true}}