Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
ng2-datetime
Advanced tools
Readme
Datetime picker plugins wrapper for Angular2.
npm install --save bootstrap-datepicker
or use the bundled version from src/vendor/bootstrap-datepicker
npm install --save bootstrap-timepicker
or use the bundled version from src/vendor/bootstrap-timepicker
npm install --save ng2-datetime
import 'ng2-datetime/src/vendor/bootstrap-datepicker/bootstrap-datepicker.min.js';
import 'ng2-datetime/src/vendor/bootstrap-timepicker/bootstrap-timepicker.min.js';
The bundled CSS is in the same folder, it's up to you to decide how to import those.
2. import {NKDatetime} from 'ng2-datetime/ng2-datetime';
3. Add to your component's directives property
@Component({
...
directives: [NKDatetime],
...
})
<datetime [(ngModel)]="date"></datetime>
See the DEMO and it source for more information.[datepicker]="{Object} || false"
- Object with Datepicker options or false
if you want to remove the datepicker
Ex. <datetime [datepicker]="{daysOfWeekDisabled: [0,6]}" [(ngModel)]="date"></datetime>
[timepicker]="{Object} || false"
- Object with Timepicker options or false
if you want to remove the timepicker
Ex. <datetime [timepicker]="{showMeridian: false, minuteStep: 1}" [(ngModel)]="date"></datetime>
Fork > Create > Pull request
FAQs
Bootstrap datetime picker for Angular
We found that ng2-datetime 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).