
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
angular-datepicker-angularjs
Advanced tools
The mobile-friendly, responsive, and lightweight Angular date & time input picker.
Warning: This project is no longer maintained. Use at your own risk!
The mobile-friendly, responsive, and lightweight Angular.js date & time input picker. Perfect for Ionic apps!
,
This is basically a pickadate.js fork that completely removes the jQuery dependency and adds Angular.js directives.
bower install angular-native-picker
Include build/angular-datepicker.js
in your application:
<script src="angular-datepicker.js"></script>
Include CSS files in your application:
<link rel="stylesheet" href="build/themes/default.css"/>
<link rel="stylesheet" href="build/themes/default.date.css"/>
<link rel="stylesheet" href="build/themes/default.time.css"/>
Note: for usage within a modal the default (not classic) CSS files are recommended.
Add the module angular-datepicker
as a dependency to your app module:
var myapp = angular.module('myapp', ['angular-datepicker']);
To create a date or time picker, add the pick-a-date
or pick-a-time
directive to your input tag:
<input type="text" pick-a-date="date" placeholder="Select Date" /> {{ date }}
<input type="text" pick-a-time="time" placeholder="Select Time" /> {{ time }}
You can also provide an options object to the directive which will be passed
into the pickadate
or pickatime
constructor.
// somewhere in your controller
$scope.options = {
format: 'yyyy-mm-dd', // ISO formatted date
onClose: function(e) {
// do something when the picker closes
}
}
<input type="text" pick-a-date="date" pick-a-date-options="options" /> {{ date }}
<input type="text" pick-a-time="time" pick-a-time-options="options" /> {{ time }}
If you don't need to provide any callbacks (like onClose
) you can specify the
options object as an angular expression:
<input type="text" pick-a-date="date" pick-a-date-options="{ format: 'yyyy-mm-dd' }" />
For a full list of available options please refer to the pickadate documentation for datepicker options and timepicker options.
FAQs
The mobile-friendly, responsive, and lightweight Angular date & time input picker.
The npm package angular-datepicker-angularjs receives a total of 3 weekly downloads. As such, angular-datepicker-angularjs popularity was classified as not popular.
We found that angular-datepicker-angularjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.